From 208f897501dca2e2752d7eb068805fe650a9e7c3 Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 19 Mar 2023 19:08:27 -0700 Subject: [PATCH] Update due to backend change --- src/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 37deb8f..6d247b4 100755 --- a/src/main.py +++ b/src/main.py @@ -169,10 +169,10 @@ class YandereBot(FediBot.YandereBot): else: self.print_header_stats(None) - def post(self, picked): + def post(self): # Attempt post try: - return super(YandereBot, self).post(picked) + return super(YandereBot, self).post() # Invalid post (move to next profile) except FediBot.InvalidPost as e: @@ -184,6 +184,10 @@ class YandereBot(FediBot.YandereBot): os.remove(picked["full_path"]) print("Unable to post:", e) + # Other Exceptions + except Exception as e: + print("Unhandled exception", e) + self.handle_post_exception() # The post failed