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): ...@@ -204,7 +204,7 @@ class Node(QObject):
def close_ws(self): def close_ws(self):
for ws in self._ws_connection.values(): for ws in self._ws_connection.values():
if ws: if ws:
asyncio.wait_for(ws.close(), timeout=15) asyncio.as_completed(ws.close(), timeout=15)
@property @property
def pubkey(self): def pubkey(self):
......
...@@ -50,10 +50,11 @@ def async_exception_handler(loop, context): ...@@ -50,10 +50,11 @@ def async_exception_handler(loop, context):
for ignored in ("Unclosed", "socket.gaierror"): for ignored in ("Unclosed", "socket.gaierror"):
if ignored in line: if ignored in line:
return return
for line in traceback.format_exception(*exc_info): if exc_info:
for ignored in ("Unclosed", "socket.gaierror"): for line in traceback.format_exception(*exc_info):
if ignored in line: for ignored in ("Unclosed", "socket.gaierror"):
return if ignored in line:
return
os._exit(1) 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