Fixed crash when handling FileTooLarge or InvalidMimeType exception

This commit is contained in:
Anon 2023-04-08 18:11:27 -07:00
parent 16cdad7edf
commit de66d617ed

View File

@ -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