Skip to content

Commit

Permalink
write_graphml: Small fix for object type description on TypeError
Browse files Browse the repository at this point in the history
… exception (#7109)

Small fix for object type description on `TypeError` exception.
  • Loading branch information
nelsonaloysio committed Nov 13, 2023
1 parent 312bb3a commit d80dfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/readwrite/graphml.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def get_xml_type(self, key):
return self.xml_type[key]
except KeyError as err:
raise TypeError(
f"GraphML does not support type {type(key)} as data values."
f"GraphML does not support type {key} as data values."
) from err


Expand Down

0 comments on commit d80dfd7

Please sign in to comment.