Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Oct 30, 2024
1 parent aaefcbb commit 1a724db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/gui/tools/plot/plot_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ def observations_for_key(self, ensemble_ids: List[str], key: str) -> pd.DataFram
observations = response.json()
observations_dfs = []

if not response.json():
if not observations:
continue
try:
response.json()[0]
observations[0]
except (KeyError, IndexError, JSONDecodeError) as e:
raise httpx.RequestError(
f"Observation schema might have changed key={key}, ensemble_name={ensemble.name}, e={e}"
Expand Down

0 comments on commit 1a724db

Please sign in to comment.