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.
This commit is contained in:
parent
48a5240a6e
commit
6e83bbef67
|
|
@ -35,7 +35,8 @@ try:
|
||||||
import stan.common
|
import stan.common
|
||||||
|
|
||||||
DEPENDENCIES_INSTALLED = True
|
DEPENDENCIES_INSTALLED = True
|
||||||
except ImportError:
|
except ImportError as e:
|
||||||
|
logging.getLogger(__name__).warning(f'Bayesian dependencies failed to import: {e!r}')
|
||||||
jax = None
|
jax = None
|
||||||
jnp = None
|
jnp = None
|
||||||
jrandom = None
|
jrandom = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue