mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 15:57:31 +00:00
Merge pull request #5118 from haiwen/thumbnail-create
update thumbnail creation response code
This commit is contained in:
commit
0621c0c198
@ -141,8 +141,8 @@ def generate_thumbnail(request, repo_id, size, path):
|
||||
f = BytesIO(image_file.read())
|
||||
return _create_thumbnail_common(f, thumbnail_file, size)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
return (False, 500)
|
||||
logger.warning(e)
|
||||
return (False, 400)
|
||||
|
||||
def create_psd_thumbnails(repo, file_id, path, size, thumbnail_file, file_size):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user