mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 11:18:08 -06:00
Mastodon: TWBlue should be able to ignore sessions if there are errors attempting to log-in
This commit is contained in:
parent
d4219f1705
commit
76d0866780
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user