Skip to content

Commit 77eea2c

Browse files
fix: actually print instead of crash the import loader
1 parent e8f7714 commit 77eea2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WDoc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ def import_worker(q: Queue):
3535
try:
3636
dir(sys.modules[first])
3737
except Exception as e:
38-
raise Exception(
38+
print(
3939
f"Error when unlazyloading module '{first}'. Error: '{e}'"
4040
"\nYou can try setting the env variable "
4141
"WDOC_DISABLE_LAZYLOADING to 'true'"
4242
"Don't hesitate to open an issue!"
43-
) from e
43+
)
4444
# print(f"Unlazyloaded module: {first}")
4545

4646

0 commit comments

Comments
 (0)