Skip to content

Commit 79b85ba

Browse files
committed
refactor: Convert non-percent formatted strings to f-strings
find . -name '*.py' -exec pyupgrade --keep-percent-format --py39-plus {} +
1 parent 80c9283 commit 79b85ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/WebAppDIRAC/Lib/WebHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def defaultEncoder(data):
116116
return data.strftime(DATETIME_DEFAULT_FORMAT)
117117
if isinstance(data, (set)):
118118
return list(data)
119-
raise TypeError("Object of type {} is not JSON serializable".format(data.__class__.__name__))
119+
raise TypeError(f"Object of type {data.__class__.__name__} is not JSON serializable")
120120

121121

122122
class WebHandler(TornadoREST):

0 commit comments

Comments
 (0)