From 6e83bbef678f2d624d857868d8bbf7fba3502fed Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Fri, 17 Jul 2026 17:06:33 +0200 Subject: [PATCH] log the underlying ImportError when bayesian deps fail to import Swallowing the exception made it impossible to tell which of jax/numpyro/stan actually failed in CI. --- quapy/method/_bayesian.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quapy/method/_bayesian.py b/quapy/method/_bayesian.py index bf4659e..325da08 100644 --- a/quapy/method/_bayesian.py +++ b/quapy/method/_bayesian.py @@ -35,7 +35,8 @@ try: import stan.common DEPENDENCIES_INSTALLED = True -except ImportError: +except ImportError as e: + logging.getLogger(__name__).warning(f'Bayesian dependencies failed to import: {e!r}') jax = None jnp = None jrandom = None