mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-26 23:13:25 +00:00
email_requests: Catch all connection related exceptions
Closes: #4160 Closes: #4105
This commit is contained in:
parent
ba658180d9
commit
8f31d224aa
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ class Processor(threading.Thread, PrintError):
|
|||
try:
|
||||
self.M = imaplib.IMAP4_SSL(self.imap_server)
|
||||
self.M.login(self.username, self.password)
|
||||
except imaplib.IMAP4.error as e:
|
||||
except BaseException as e:
|
||||
self.print_error(e)
|
||||
self.connect_wait *= 2
|
||||
# Reconnect when host changes
|
||||
|
@ -111,7 +111,7 @@ class Processor(threading.Thread, PrintError):
|
|||
s.login(self.username, self.password)
|
||||
s.sendmail(self.username, [recipient], msg.as_string())
|
||||
s.quit()
|
||||
except smtplib.SMTPException as e:
|
||||
except BaseException as e:
|
||||
self.print_error(e)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue