tinterface: catch more SOCKS exceptions - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4d0030363beb44980e4bc75497c222ca76f9ff6e DIR parent fd5ad9ac70a7d081a7ad63956703c93b9dcde1cb HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 4 Jan 2019 11:00:48 +0100 interface: catch more SOCKS exceptions Diffstat: M electrum/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/interface.py b/electrum/interface.py t@@ -207,7 +207,7 @@ class Interface(PrintError): async def _try_saving_ssl_cert_for_first_time(self, ca_ssl_context): try: ca_signed = await self.is_server_ca_signed(ca_ssl_context) - except (OSError, aiorpcx.socks.SOCKSFailure) as e: + except (OSError, aiorpcx.socks.SOCKSError) as e: raise ErrorGettingSSLCertFromServer(e) from e if ca_signed: with open(self.cert_path, 'w') as f: t@@ -284,7 +284,7 @@ class Interface(PrintError): return try: await self.open_session(ssl_context) - except (asyncio.CancelledError, OSError, aiorpcx.socks.SOCKSFailure) as e: + except (asyncio.CancelledError, OSError, aiorpcx.socks.SOCKSError) as e: self.print_error('disconnecting due to: {}'.format(repr(e))) return