Minor change
This commit is contained in:
parent
1328845069
commit
59d80a6fc2
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user