Update due to backend change
This commit is contained in:
parent
88a8e6af93
commit
208f897501
@ -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
|
||||
|
Reference in New Issue
Block a user