We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c9283 commit 79b85baCopy full SHA for 79b85ba
1 file changed
src/WebAppDIRAC/Lib/WebHandler.py
@@ -116,7 +116,7 @@ def defaultEncoder(data):
116
return data.strftime(DATETIME_DEFAULT_FORMAT)
117
if isinstance(data, (set)):
118
return list(data)
119
- raise TypeError("Object of type {} is not JSON serializable".format(data.__class__.__name__))
+ raise TypeError(f"Object of type {data.__class__.__name__} is not JSON serializable")
120
121
122
class WebHandler(TornadoREST):
0 commit comments