Skip to content

DOC: fix README, CancelledError is a BaseException since 3.8 #9

Description

@cjrh

The README currently says this:

Consider the previous example using aiohttp to fetch URLs: inside the fetch() function, we're handling Exception, which includes asyncio.CancelledError

This is incorrect since Python 3.8, when the superclass of asyncio.CancelledError changed from Exception to BaseException. See https://docs.python.org/3/library/asyncio-exceptions.html#asyncio.CancelledError

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions