Removed forced string serialisation of objects
This commit is contained in:
parent
c650912ffe
commit
e7d1f211bc
1 changed files with 2 additions and 5 deletions
|
|
@ -100,11 +100,8 @@ class JSONEncoder(flask.json.JSONEncoder):
|
||||||
else:
|
else:
|
||||||
# call base class implementation which takes care of
|
# call base class implementation which takes care of
|
||||||
# raising exceptions for unsupported types
|
# raising exceptions for unsupported types
|
||||||
try:
|
return flask.json.JSONEncoder.default(self, o)
|
||||||
return flask.json.JSONEncoder.default(self, o)
|
|
||||||
# if it's some mystery object, just return a string representation
|
|
||||||
except TypeError:
|
|
||||||
return str(o)
|
|
||||||
|
|
||||||
|
|
||||||
# HANDLE BASIC LOADING AND SAVING OF SETTINGS FILES
|
# HANDLE BASIC LOADING AND SAVING OF SETTINGS FILES
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue