-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError in graph_tool #121
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Within the
get_node_type
method ingraph_tool.py
there is an if-clause to check, if a certain key exists ingraph.keys()
, but if it fails, accessing the key is still tried and will fail with aKeyError
:Instead, something like that could be done:
I'm not sure if it is expected behavior that the name does not exist within the keys. If it's not, a different, more precise error message should be printed and an exception should be raised accordingly.
The text was updated successfully, but these errors were encountered: