Skip to content

Commit

Permalink
Adding pragma no cover to value error.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewoldag committed Mar 6, 2024
1 parent f25b357 commit 463624f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qp/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def write_dict(filename, ensemble_dict, **kwargs):
for key, val in ensemble_dict.items():
# check that val is a qp.Ensemble
if not isinstance(val, Ensemble):
raise ValueError("All values in ensemble_dict must be qp.Ensemble")
raise ValueError("All values in ensemble_dict must be qp.Ensemble") # pragma: no cover

output_tables[key] = val.build_tables()
io.writeDictsToHdf5(output_tables, filename, **kwargs)
Expand Down

0 comments on commit 463624f

Please sign in to comment.