We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecdf558 commit 60e9916Copy full SHA for 60e9916
apps/oss/serializers/file.py
@@ -187,7 +187,7 @@ def get_url_content(url, application_id: str):
187
raise ValueError("Blocked unsafe redirect to internal host")
188
# 判断文件大小
189
if int(response.headers.get('Content-Length', 0)) > file_limit:
190
- return AppApiException(500, _('File size exceeds limit'))
+ raise AppApiException(500, _('File size exceeds limit'))
191
# 返回状态码 响应内容大小 响应的contenttype 还有字节流
192
content_type = response.headers.get('Content-Type', '')
193
# 根据内容类型决定如何处理
0 commit comments