Skip to content

Commit 65dc9ed

Browse files
authored
print more detailed info on ImportError (#53)
1 parent e832bef commit 65dc9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cppimport/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def try_load(module_data):
6464
try:
6565
load_module(module_data)
6666
return True
67-
except ImportError:
67+
except ImportError as e:
6868
quiet_print(
69-
"ImportError during import with matching checksum. Trying to rebuild."
69+
f"ImportError during import with matching checksum: {e}. Trying to rebuild."
7070
)
7171
return False
7272

0 commit comments

Comments
 (0)