Skip to content

Error message improvement for nbunch_iter ( NetworkXError raised with specific message on TypeError with "iter" in msg ) - #7790

Merged
rossbar merged 7 commits into
networkx:mainfrom
WoojinJung-04:error-msg-improvement-for-issue-7740
Jan 14, 2025
Merged

rossbar merged 7 commits into
networkx:mainfrom
WoojinJung-04:error-msg-improvement-for-issue-7740

Conversation

@WoojinJung-04

Copy link
Copy Markdown
Contributor

This closes #7740

Changes :

Error message changed to include what nbunch is instead of just 'nbunch'

Tests changed accordingly to look for new error message.

Small improvement in documentation && documentation changed accordingly.

Comment thread networkx/classes/graph.py Resolved
Comment thread networkx/classes/graph.py Resolved
Comment thread networkx/classes/graph.py Resolved
Comment thread networkx/classes/graph.py Resolved

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me!
Thanks @WoojinJung-04 !

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @WoojinJung-04 and @dschult for working this out! I took the liberty of making a test of the original issue and pushing it up.

@rossbar
rossbar merged commit 9fce91a into networkx:main Jan 14, 2025
@jarrodmillman jarrodmillman added this to the 3.5 milestone Jan 14, 2025
@MridulS MridulS mentioned this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Opaque exception message for degree when node not present

4 participants