fix type error
This commit is contained in:
parent
c76c7c202a
commit
fb5480b036
@ -27,7 +27,7 @@ async def process_tasks(
|
||||
|
||||
processed_results: List[Union[str, None]] = []
|
||||
for result in results:
|
||||
if isinstance(result, Exception):
|
||||
if isinstance(result, BaseException):
|
||||
print(f"An exception occurred: {result}")
|
||||
processed_results.append(None)
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user