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