switched to f-string

This commit is contained in:
2024-03-29 21:58:49 +01:00
parent 7acc73ffa0
commit dce5ff1520
+1 -1
View File
@@ -286,7 +286,7 @@ def validate_response(resp):
return resp
message = resp.get("message", "Unknown error")
msg = "An error happened on the server:\n{}".format(message)
msg = f"An error happened on the server:\n{message}"
raise BrokerError(msg)