Use BaseException in exception check

This commit is contained in:
Matthias
2023-11-13 18:14:18 +01:00
parent 51feeddc5c
commit f286cb0a90

View File

@@ -1954,7 +1954,7 @@ class Exchange:
results = await asyncio.gather(*input_coro, return_exceptions=True)
for res in results:
if isinstance(res, Exception):
if isinstance(res, BaseException):
logger.warning(f"Async code raised an exception: {repr(res)}")
if raise_:
raise