Skip to content

Swallow unhandled exception report introduced by 36802 #81097

Closed

Description

@asvetlov
BPO 36916
Nosy @vstinner, @asvetlov, @1st1
PRs
  • bpo-36916: Swallow unhandled exception #13313
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-05-15.08:06:07.603>
    created_at = <Date 2019-05-14.12:35:05.474>
    labels = ['3.8', 'type-bug', 'library', 'expert-asyncio']
    title = 'Swallow unhandled exception report introduced by 36802'
    updated_at = <Date 2019-05-15.08:06:07.602>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2019-05-15.08:06:07.602>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-15.08:06:07.603>
    closer = 'asvetlov'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2019-05-14.12:35:05.474>
    creator = 'asvetlov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36916
    keywords = ['patch']
    message_count = 2.0
    messages = ['342457', '342481']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'asvetlov', 'yselivanov']
    pr_nums = ['13313']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36916'
    versions = ['Python 3.8']

    Activity

    1. asvetlov commented on May 14, 2019

      @asvetlov
      ContributorAuthor

      In bpo-36802 when old-style writer.write() is used without awaiting and an exception is raised from writer.drain() method asyncio reports about the unhandled exception.

      The proposed fix adds a done callback to task for swallowing the exception in such case.

    2. added
      stdlib
      3.8 (EOL)
      type-bug
      on May 14, 2019
    3. vstinner commented on May 14, 2019

      @vstinner
      Member

      New changeset f12ba7c by Victor Stinner (Andrew Svetlov) in branch 'master':
      bpo-36916: asyncio: Swallow unhandled write() exception (GH-13313)
      f12ba7c

    4. transferred this issue fromon Apr 10, 2022
    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

      3.8 (EOL)stdlibtopic-asynciotype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions