You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that inventory_tasks_to_product_id[done_task] is just a number. So it doesn't have .exception method. It should be probably simply done_task.
logging.exception(f'Error getting inventory for id {product_id}', exc_info=done_task.exception())
The text was updated successfully, but these errors were encountered:
amirsoroush
added a commit
to amirsoroush/concurrency-in-python-with-asyncio
that referenced
this issue
Sep 24, 2023
There is the row in
get_products_with_inventory
function:Then
inventory_tasks_to_product_id
defined as this:The problem is that
inventory_tasks_to_product_id[done_task]
is just a number. So it doesn't have.exception
method. It should be probably simplydone_task
.The text was updated successfully, but these errors were encountered: