forked from mirrors/bookwyrm
Update preview_images.py
This commit is contained in:
parent
7d0a7ab766
commit
ad6aaa6bc8
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue