Skip to content
Snippets Groups Projects
Commit 8c023046 authored by inso's avatar inso
Browse files

Fix logs in exception catcher

parent d54e07e8
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ class Node(QObject):
def close_ws(self):
for ws in self._ws_connection.values():
if ws:
asyncio.wait_for(ws.close(), timeout=15)
asyncio.as_completed(ws.close(), timeout=15)
@property
def pubkey(self):
......
......@@ -50,10 +50,11 @@ def async_exception_handler(loop, context):
for ignored in ("Unclosed", "socket.gaierror"):
if ignored in line:
return
for line in traceback.format_exception(*exc_info):
for ignored in ("Unclosed", "socket.gaierror"):
if ignored in line:
return
if exc_info:
for line in traceback.format_exception(*exc_info):
for ignored in ("Unclosed", "socket.gaierror"):
if ignored in line:
return
os._exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment