Skip to content

Python 3 hasattr calls getattr #22

@bbengfort

Description

@bbengfort

Python 3 compatibility

In Python 3, when you call hasattr, it just pipes out to getattr and excepts AttributeError. The problem is that in the __getitem__ method of the configuration, hasattr is used to check for a name before getattr.

The result is that configuration calls the required method which raises ImproperlyConfigured in the path descriptors.

This has to be fixed before release.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions