Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit bd9e54f

Browse files
committed
Convert format string in new test to support more < Python 3.6
1 parent 6083af5 commit bd9e54f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def encode_complex(z):
195195
return (z.real, z.imag)
196196
else:
197197
type_name = z.__class__.__name__
198-
raise TypeError(f"Object of type '{type_name}' is no JSON serializable")
198+
raise TypeError("Object of type '{}' is no JSON serializable".format(type_name))
199199

200200
formatter = jsonlogger.JsonFormatter(json_default=encode_complex,
201201
json_encoder=json.JSONEncoder)

0 commit comments

Comments
 (0)