diff --git a/openflexure_microscope/api/v2/views/captures.py b/openflexure_microscope/api/v2/views/captures.py index 31eef23c..4cb82325 100644 --- a/openflexure_microscope/api/v2/views/captures.py +++ b/openflexure_microscope/api/v2/views/captures.py @@ -223,8 +223,9 @@ class CaptureMetadata(View): return abort(404) # 404 Not Found data_dict = JsonResponse(request).json + logging.debug(data_dict) - if type(data_dict) != list: + if type(data_dict) != dict: return abort(400) # TODO: Allow putting system metadata maybe?