Skip to content

Name the method in CSVKitUtility.main's NotImplementedError - #1350

Merged
jpmckinney merged 1 commit into
wireservice:masterfrom
uttam12331:fix-main-notimplemented-message
Jul 23, 2026
Merged

Name the method in CSVKitUtility.main's NotImplementedError#1350
jpmckinney merged 1 commit into
wireservice:masterfrom
uttam12331:fix-main-notimplemented-message

Conversation

@uttam12331

Copy link
Copy Markdown
Contributor

CSVKitUtility.main raises a NotImplementedError whose message is missing the method name and begins with a stray space:

raise NotImplementedError(' must be provided by each subclass of CSVKitUtility.')

So a subclass author who forgets to implement main() gets:

NotImplementedError:  must be provided by each subclass of CSVKitUtility.

The sibling add_arguments a few lines above names itself correctly, which shows the intended form:

raise NotImplementedError('add_arguments must be provided by each subclass of CSVKitUtility.')

This adds the missing main so both messages match.

No CHANGELOG entry, since this is an internal error message rather than a user-facing script change — happy to add one if you'd prefer. tests/test_cli.py passes locally and flake8 is clean.

The message started with a stray space and omitted the method name,
raising ' must be provided by each subclass of CSVKitUtility.' The
sibling add_arguments names itself; do the same for main.
@jpmckinney
jpmckinney merged commit a38d4b9 into wireservice:master Jul 23, 2026
2 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