Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Jun 12, 2024
1 parent 579d2c3 commit f652e38
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyaerocom/aeroval/experiment_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ def available_experiments(self) -> list:
"""
List of available experiments
"""
with aerovaldb.open(f"json_files:{self.json_basedir}") as db:
try:
return list(db.get_experiments(self.proj_id))
except FileNotFoundError:
return []
try:
return list(self.avdb.get_experiments(self.proj_id))
except FileNotFoundError:
return []

Check warning on line 75 in pyaerocom/aeroval/experiment_output.py

View check run for this annotation

Codecov / codecov/patch

pyaerocom/aeroval/experiment_output.py#L72-L75

Added lines #L72 - L75 were not covered by tests


class ExperimentOutput(ProjectOutput):
Expand Down

0 comments on commit f652e38

Please sign in to comment.