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

This commit is contained in:
Manuel Cortez 2023-01-05 17:16:34 -06:00
parent d4219f1705
commit 76d0866780
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ TWBlue Changelog
* TWBlue will display properly new paragraphs in mastodon posts.
* In the session manager, Mastodon sessions are now displayed including the instance to avoid confusion.
* TWBlue will now read default visibility preferences when posting new statuses, and display sensitive content. These preferences can be set on the mastodon instance, in the account's preferences section. If you wish to change TWBlue's behavior and have it not read those preferences from your instance, but instead set the default public visibility and hide sensitive content, you can uncheck the Read preferences from instance checkbox in the account options.
* If a mastodon instance is not active or there are errors during login, TWBlue will report it in the log file and will continue with other sessions.
## Changes in version 2022.12.13

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