From 59d80a6fc22cfa62197cf8997edba8a458c5cdad Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 19 Mar 2023 19:29:43 -0700 Subject: [PATCH] Minor change --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)