We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffdbbfb commit c7d9df3Copy full SHA for c7d9df3
src/torchcodec/decoders/_core/ops.py
@@ -44,7 +44,8 @@ def load_torchcodec_extension():
44
pybind_ops_module_name,
45
_get_extension_path(pybind_ops_library_name),
46
)
47
- assert spec is not None
+ if spec is None:
48
+ raise RuntimeError("spec is None")
49
50
global _pybind_ops
51
_pybind_ops = importlib.util.module_from_spec(spec)
0 commit comments