electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8f31d224aa30bf9fc1a080e5e52e08b9c984caab
parent ba658180d9ff091fce10a2cb8290fcc48e10a22e
Author: Johann Bauer <bauerj@bauerj.eu>
Date:   Fri, 23 Mar 2018 15:17:31 +0100

email_requests: Catch all connection related exceptions

Closes: #4160
Closes: #4105

Diffstat:
Mplugins/email_requests/qt.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/email_requests/qt.py b/plugins/email_requests/qt.py @@ -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)