Update due to backend change

This commit is contained in:
Anon 2023-03-19 19:08:27 -07:00
parent 88a8e6af93
commit 208f897501

View File

@ -169,10 +169,10 @@ class YandereBot(FediBot.YandereBot):
else: else:
self.print_header_stats(None) self.print_header_stats(None)
def post(self, picked): def post(self):
# Attempt post # Attempt post
try: try:
return super(YandereBot, self).post(picked) return super(YandereBot, self).post()
# Invalid post (move to next profile) # Invalid post (move to next profile)
except FediBot.InvalidPost as e: except FediBot.InvalidPost as e:
@ -184,6 +184,10 @@ class YandereBot(FediBot.YandereBot):
os.remove(picked["full_path"]) os.remove(picked["full_path"])
print("Unable to post:", e) print("Unable to post:", e)
# Other Exceptions
except Exception as e:
print("Unhandled exception", e)
self.handle_post_exception() self.handle_post_exception()
# The post failed # The post failed