From 8241989b19170ce3c08d29f4e5e22f16932d35a5 Mon Sep 17 00:00:00 2001 From: "Ware, Joseph (DLSLtd,RAL,LSCI)" Date: Thu, 5 Sep 2024 10:59:29 +0100 Subject: [PATCH] Handle type checking updates in Request library --- src/dodal/devices/areadetector/plugins/MJPG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: