Skip to content

Commit

Permalink
Remove excess check_response call in std_dev_for_parameter
Browse files Browse the repository at this point in the history
The `std_dev_for_parameter` method manually checks if the response's status_code is
200 OK and decides what to do if it is not. Calling the `check_response`
method raises an exception if it is not 200 OK, which is a valid
response in this case.
  • Loading branch information
jonathan-eq committed Sep 11, 2024
1 parent 22e95fc commit 1cd56d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ert/gui/tools/plot/plot_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ def std_dev_for_parameter(
params={"z": z},
timeout=self._timeout,
)
self._check_response(response)

if response.status_code == 200:
# Deserialize the numpy array
Expand Down

0 comments on commit 1cd56d4

Please sign in to comment.