Skip to content

config: raise NotImplementedError from abstract ConfigNamespace methods - #50

Open
prownd wants to merge 1 commit into
candlepin:mainfrom
prownd:config-raise-NotImplementedError-from-abstract-ConfigNamespace-s01
Open

prownd wants to merge 1 commit into
candlepin:mainfrom
prownd:config-raise-NotImplementedError-from-abstract-ConfigNamespace-s01

Conversation

@prownd

@prownd prownd commented Sep 14, 2026

Copy link
Copy Markdown

ConfigNamespace._getitem() and iter() returned a NotImplementedError instance instead of raising it (see the FIXME). As a result 'key in ConfigNamespace()' was always True and iter() failed with a confusing TypeError. Raise the exception as intended.

ConfigNamespace._getitem() and __iter__() returned a NotImplementedError
instance instead of raising it (see the FIXME).  As a result
'key in ConfigNamespace()' was always True and iter() failed with a
confusing TypeError.  Raise the exception as intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant