Skip to content

Commit

Permalink
review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Rahul Tuli <rahul@neuralmagic.com>
  • Loading branch information
bfineran and rahul-tuli authored Oct 5, 2023
1 parent 881e868 commit 7b3e3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparsezoo/utils/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _import_and_get_value_from_module(module_path: str, value_name: str) -> Any:
spec.loader.exec_module(module)

# get value from module
value = getattr(module, value_name)
value = getattr(module, value_name, None)

if not value:
raise RuntimeError(
Expand Down

0 comments on commit 7b3e3bc

Please sign in to comment.