From ad6aaa6bc88e2718f5ad64aa6c4dcca7b57f1696 Mon Sep 17 00:00:00 2001 From: Joachim Date: Sat, 20 Nov 2021 17:15:58 +0100 Subject: [PATCH] Update preview_images.py --- bookwyrm/preview_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/preview_images.py b/bookwyrm/preview_images.py index c6bc3cbe..32465d6e 100644 --- a/bookwyrm/preview_images.py +++ b/bookwyrm/preview_images.py @@ -325,7 +325,7 @@ def save_and_cleanup(image, instance=None): except ValueError: file_name = None - if not file_name or file_name == '': + if not file_name or file_name == "": uuid = uuid4() file_name = f"{instance.id}-{uuid}.jpg"