Fix typing
This commit is contained in:
parent
8cd3449cff
commit
eb143917be
1 changed files with 5 additions and 1 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue