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
Consider the previous example using aiohttp to fetch URLs: inside the fetch() function, we're handling Exception, which includes asyncio.CancelledError
Fixedcjrh#9 by changing the README file under Dealing with errors and cancellation from:
the ``fetch()`` function, we're handling ``Exeption``, which
to:
the ``fetch()`` function, we're handling ``BaseExeption``, which
The README currently says this:
This is incorrect since Python 3.8, when the superclass of
asyncio.CancelledError
changed fromException
toBaseException
. See https://docs.python.org/3/library/asyncio-exceptions.html#asyncio.CancelledErrorThe text was updated successfully, but these errors were encountered: