Skip to content

Commit bd586da

Browse files
authored
possible fix (#177)
throw if empty path to reveal more debug info
1 parent d20942d commit bd586da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libpython_clj2/python.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,9 @@ user> (py/call-attr inst \"addarg\" 10)
629629
(when (seq item-path)
630630
(if-let [module-retval (try
631631
(import-module item-path)
632-
(catch Throwable e nil))]
632+
(catch Exception e
633+
(when-not (seq (module-path-string item-path))
634+
(throw e))))]
633635
(if reload?
634636
(let [import-lib (import-module "importlib")]
635637
(call-attr import-lib "reload" module-retval))

0 commit comments

Comments
 (0)