tMerge pull request #200 from jmacxx/fix_connection_issue_IOError - electrum-personal-server - Maximally lightweight electrum server for a single user HTML git clone https://git.parazyd.org/electrum-personal-server DIR Log DIR Files DIR Refs DIR README --- DIR commit f03a83db87a99a425ad36a95109f3dd0933840fd DIR parent 93422538bc565d02df4b81a7fd313781df94cfea HTML Author: chris-belcher <belcher@riseup.net> Date: Tue, 9 Jun 2020 14:10:05 +0100 Merge pull request #200 from jmacxx/fix_connection_issue_IOError Handle uncaught exception when electrum connects Diffstat: M electrumpersonalserver/server/comm… | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py t@@ -123,7 +123,7 @@ def run_electrum_server(rpc, txmonitor, config): except socket.timeout: is_node_reachable = on_heartbeat_listening(txmonitor) accepting_clients = is_node_reachable - except (ConnectionRefusedError, ssl.SSLError): + except (ConnectionRefusedError, ssl.SSLError, IOError): sock.close() sock = None logger.debug('Electrum connected from ' + str(addr[0]))