From d73fcac4202f7343f09cedc3bdb52b4c582a7435 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 12 Oct 2021 17:35:36 -0400 Subject: [PATCH] possible fix throw if empty path to reveal more debug info --- src/libpython_clj2/python.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libpython_clj2/python.clj b/src/libpython_clj2/python.clj index f0a35a1..3674278 100644 --- a/src/libpython_clj2/python.clj +++ b/src/libpython_clj2/python.clj @@ -618,7 +618,9 @@ user> (py/call-attr inst \"addarg\" 10) (when (seq item-path) (if-let [module-retval (try (import-module item-path) - (catch Throwable e nil))] + (catch Exception e + (when-not (seq (module-path-string item-path)) + (throw e))))] (if reload? (let [import-lib (import-module "importlib")] (call-attr import-lib "reload" module-retval)) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy