Fix typing

This commit is contained in:
Andras Schmelczer 2022-07-16 12:28:01 +02:00
parent 8cd3449cff
commit eb143917be
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E

View file

@ -43,7 +43,11 @@ def mapper_function(
), ),
) )
except Exception as e: except Exception as e:
return MapResult(i, None, e, traceback.format_exc()) # `e` has to be stringified in order to avoid any
# surprising serialization error when returning it
return MapResult(
i, None, str(e), traceback.format_exc()
)
async def main() -> List[MapResult]: async def main() -> List[MapResult]:
return await asyncio.gather( return await asyncio.gather(