Apply flynt to use f-strings

This commit is contained in:
Fabien Castan 2025-04-30 19:13:53 +02:00
parent 37a6d9e2e7
commit 1d4ba577a9
22 changed files with 123 additions and 124 deletions

View file

@ -39,9 +39,9 @@ class UnknownNodeTypeError(GraphException):
class NodeUpgradeError(GraphException):
def __init__(self, nodeName, details=None):
msg = "Failed to upgrade node {}".format(nodeName)
msg = f"Failed to upgrade node {nodeName}"
if details:
msg += ": {}".format(details)
msg += f": {details}"
super(NodeUpgradeError, self).__init__(msg)