tinterface: follow-up 6ec1578a90916436b3bfabe90cafd9bfc804a332 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a591ccf9b1ca079b7e46491071c9101cd8378abf DIR parent db9a9bbf25a09908f384eafd7a61afcb6cc4b375 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 22 May 2019 17:43:33 +0200 interface: follow-up 6ec1578a90916436b3bfabe90cafd9bfc804a332 Diffstat: M electrum/interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/electrum/interface.py b/electrum/interface.py t@@ -305,7 +305,7 @@ class Interface(Logger): if not self._is_saved_ssl_cert_available(): try: await self._try_saving_ssl_cert_for_first_time(ca_sslc) - except (OSError, aiorpcx.socks.SOCKSError) as e: + except (OSError, ConnectError, aiorpcx.socks.SOCKSError) as e: raise ErrorGettingSSLCertFromServer(e) from e # now we have a file saved in our certificate store siz = os.stat(self.cert_path).st_size t@@ -389,9 +389,9 @@ class Interface(Logger): async def get_certificate(self): sslc = ssl.SSLContext() try: - async with aiorpcx.Connector(RPCSession, - host=self.host, port=self.port, - ssl=sslc, proxy=self.proxy) as session: + async with _Connector(RPCSession, + host=self.host, port=self.port, + ssl=sslc, proxy=self.proxy) as session: return session.transport._ssl_protocol._sslpipe._sslobj.getpeercert(True) except ValueError: return None