Skip to content

Commit

Permalink
Raise a NotImplementedError instead of RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Feb 19, 2025
1 parent 7f9aad7 commit 28777cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dacapo/experiments/run_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def save_bioimage_io_model(
weights_path = tmp / "model.pth"
torch.save(self.model.state_dict(), weights_path)
if sys.version_info[1] < 11:
raise RuntimeError(
raise NotImplementedError(
"Saving to bioimageio modelzoo format is not implemented for Python versions < 3.11"
)
with open(weights_path, "rb", buffering=0) as f:
Expand Down

0 comments on commit 28777cd

Please sign in to comment.