No need for explicit string conversion

This commit is contained in:
Fabien Castan 2025-04-14 11:09:12 +02:00
parent 51b04bc077
commit 4e1182c3dc
5 changed files with 16 additions and 16 deletions

View file

@ -737,7 +737,7 @@ class Graph(BaseObject):
try:
self.addEdge(self.attribute(srcName), self.attribute(dstName))
except (KeyError, ValueError) as e:
logging.warning(f"Failed to restore edge {srcName} -> {dstName}: {str(e)}")
logging.warning(f"Failed to restore edge {srcName} -> {dstName}: {e}")
def upgradeAllNodes(self):
""" Upgrade all upgradable CompatibilityNode instances in the graph. """