Skip to content

config: raise NotImplementedError from abstract ConfigNamespace methods - #50

Merged
jirihnidek merged 1 commit into
candlepin:mainfrom
prownd:config-raise-NotImplementedError-from-abstract-ConfigNamespace-s01
Sep 30, 2026
Merged

jirihnidek merged 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
Contributor

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.

@jirihnidek jirihnidek left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. LGTM

@jirihnidek
jirihnidek merged commit 646b023 into candlepin:main Sep 30, 2026
10 checks passed
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.

2 participants