diff --git a/src/main.py b/src/main.py index 1f8a5c4..e3a6b20 100755 --- a/src/main.py +++ b/src/main.py @@ -183,7 +183,7 @@ class YandereBot(FediBot.YandereBot): # Invalid post (remove downloaded files) except (FileTooLarge, InvalidMimeType) as e: - if picked is not None: + if picked: os.remove(picked["full_path"]) print("Unable to post:", e)