Skip to content

Commit d01133c

Browse files
committed
improve error message
1 parent 13f215c commit d01133c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioimageio/core/model_adapters/_pytorch_model_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(
2929
devices: Optional[Sequence[str]] = None,
3030
):
3131
if torch is None:
32-
raise ImportError("torch")
32+
raise ImportError("failed to import torch")
3333
super().__init__()
3434
self.output_dims = [tuple(a.id for a in get_axes_infos(out)) for out in outputs]
3535
self._network = self.get_network(weights)

0 commit comments

Comments
 (0)