1
0
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:
Daniel Pan 2022-02-12 13:23:33 +08:00 committed by GitHub
commit 0621c0c198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: