diff --git a/src/dodal/devices/areadetector/plugins/MJPG.py b/src/dodal/devices/areadetector/plugins/MJPG.py index 9b614f3ad0..4ee666b129 100644 --- a/src/dodal/devices/areadetector/plugins/MJPG.py +++ b/src/dodal/devices/areadetector/plugins/MJPG.py @@ -70,7 +70,7 @@ def get_snapshot(): try: response = requests.get(url_str, stream=True) response.raise_for_status() - with Image.open(response.raw) as image: + with Image.open(response.content) as image: self.post_processing(image) st.set_finished() except requests.HTTPError as e: diff --git a/tests/devices/unit_tests/detector/test_detector.py b/tests/devices/unit_tests/detector/test_detector.py index d9932f64b3..919ff0c0a6 100644 --- a/tests/devices/unit_tests/detector/test_detector.py +++ b/tests/devices/unit_tests/detector/test_detector.py @@ -133,7 +133,7 @@ def test_detector_params_is_serialisable(tmp_path): # Until https://github.com/DiamondLightSource/dodal/issues/775 -def test_detector_params_deserialisation_unchanged(tmp_path): +def test_detector_params_deserialisation_unchanged(): json = """ {"expected_energy_ev":100.0, "exposure_time":1.0,