Skip to content

Commit

Permalink
Change exception type to RuntimeError since check happens at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed May 3, 2024
1 parent bdbbb11 commit 09a1162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameter_sweep/parameter_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def _publish_updates(self, iteration, solve_status, solve_time):
return

if not requests_available:
raise ImportError(
raise RuntimeError(

Check warning on line 317 in src/parameter_sweep/parameter_sweep.py

View check run for this annotation

Codecov / codecov/patch

src/parameter_sweep/parameter_sweep.py#L317

Added line #L317 was not covered by tests
"requests (parameter_sweep optional dependency) not installed"
)

Expand Down

0 comments on commit 09a1162

Please sign in to comment.