Loading openflexure_microscope/config.py +5 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,11 @@ class JSONEncoder(json.JSONEncoder): else: # call base class implementation which takes care of # raising exceptions for unsupported types try: return json.JSONEncoder.default(self, o) # if it's some mystery object, just return a string representation except TypeError: return str(o) # MAIN CONFIG CLASS Loading Loading
openflexure_microscope/config.py +5 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,11 @@ class JSONEncoder(json.JSONEncoder): else: # call base class implementation which takes care of # raising exceptions for unsupported types try: return json.JSONEncoder.default(self, o) # if it's some mystery object, just return a string representation except TypeError: return str(o) # MAIN CONFIG CLASS Loading