Skip to content

UnboundLocalError in async context incorrectly raises AttributeError #1151

@BobTheBuidler

Description

@BobTheBuidler

On the sync version of a class, in a particular place in the code, I correctly get an UnboundLocalError.

However, on the async version of the class, in the exact same "place" in the code, it incorrectly raises an AttributeError for the generator class as shown below

>   if await self.address(name) == address_:
E   AttributeError: attribute 'address_' of 'setup_address_AsyncENS_gen' undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions