From e7d1f211bc97a9e143790837ee6ebc9477324307 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 30 Jan 2020 14:20:40 +0000 Subject: [PATCH] Removed forced string serialisation of objects --- openflexure_microscope/config.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/openflexure_microscope/config.py b/openflexure_microscope/config.py index 8bbe796a..2b2abff4 100644 --- a/openflexure_microscope/config.py +++ b/openflexure_microscope/config.py @@ -100,11 +100,8 @@ class JSONEncoder(flask.json.JSONEncoder): else: # call base class implementation which takes care of # raising exceptions for unsupported types - try: - return flask.json.JSONEncoder.default(self, o) - # if it's some mystery object, just return a string representation - except TypeError: - return str(o) + return flask.json.JSONEncoder.default(self, o) + # HANDLE BASIC LOADING AND SAVING OF SETTINGS FILES