Twitter: Ignores twitter sessions if login doesn't work

This commit is contained in:
Manuel Cortez 2023-02-10 00:08:49 -06:00
parent 310ba003c9
commit 09650f588a
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

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