From de66d617ed2f2145b3ec9c36d6c5de8a9a87bd87 Mon Sep 17 00:00:00 2001 From: Anon Date: Sat, 8 Apr 2023 18:11:27 -0700 Subject: [PATCH] Fixed crash when handling FileTooLarge or InvalidMimeType exception --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index c9b0cd9..75d99a4 100755 --- a/src/main.py +++ b/src/main.py @@ -184,7 +184,7 @@ class YandereBot(FediBot.YandereBot): # Invalid post (remove downloaded files) except (FileTooLarge, InvalidMimeType) as e: if picked: - os.remove(picked["full_path"]) + os.remove(picked["picked"]["full_path"]) print("Unable to post:", e) # Other Exceptions