Mastodon: TWBlue should be able to ignore sessions if there are errors attempting to log-in

This commit is contained in:
2023-01-05 17:16:34 -06:00
parent d4219f1705
commit 76d0866780
2 changed files with 3 additions and 2 deletions

View File

@@ -48,8 +48,8 @@ class Session(base.baseSession):
self.logged = True
log.debug("Logged.")
self.counter = 0
except IOError:
log.error("The login attempt failed.")
except MastodonError:
log.exception("The login attempt failed.")
self.logged = False
else:
self.logged = False