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 70362f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion tests/devices/unit_tests/detector/test_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 70362f0

Please sign in to comment.