Another place generalized to Exception or asyncio.CancelledError.

This commit is contained in:
Jonathan Moody 2022-06-17 13:35:40 -04:00 committed by Lex Berezhny
parent 4ef03bb1f4
commit 1d0e17be21

View file

@ -214,7 +214,7 @@ class Network:
def loop_task_done_callback(f): def loop_task_done_callback(f):
try: try:
f.result() f.result()
except Exception: except (Exception, asyncio.CancelledError):
if self.running: if self.running:
log.exception("wallet server connection loop crashed") log.exception("wallet server connection loop crashed")