Skip to content

Commit e942fa1

Browse files
committed
f
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 9d32e54 commit e942fa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/check_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ def discover_modules(self, package_path: str) -> List[str]:
6868
try:
6969
# Import the main package first
7070
package = importlib.import_module(self.package_name)
71-
except ImportError as e:
71+
except Exception as e:
7272
tb = traceback.format_exc()
7373
if "UnavailableError" in tb:
7474
pass
7575

76-
raise ImportError(f"Could not import package '{self.package_name}': {e}") from e
76+
raise Exception(f"Could not import package '{self.package_name}': {e}") from e
7777

7878
package_path = package.__path__[0]
7979

0 commit comments

Comments
 (0)