Skip to content

Commit

Permalink
Handle type checking updates in Request library
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Sep 5, 2024
1 parent 258644a commit 8241989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dodal/devices/areadetector/plugins/MJPG.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8241989

Please sign in to comment.