Skip to content

Commit c40a79d

Browse files
committed
Go to default on file thumbnail fail
1 parent 67e8477 commit c40a79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gallery/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def display_thumbnail(file_id: int, auth_dict: Optional[Dict[str, Any]] = None):
778778
req = requests.get(link)
779779
if req.status_code == requests.codes.ok:
780780
return req.content
781-
abort(404)
781+
return display_thumbnail(util.DEFAULT_THUMBNAIL_NAME)
782782

783783

784784
@app.route("/api/thumbnail/get/dir/<int:dir_id>")

0 commit comments

Comments
 (0)