Skip to content

Commit 9a51289

Browse files
committed
Don't catch TypeError
1 parent d4bce39 commit 9a51289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/func_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def find_constrained_prior(
108108
aesara_jac = pm.gradient(cdf_error, [dist_params])
109109
jac = pm.aesaraf.compile_pymc([dist_params], aesara_jac, allow_input_downcast=True)
110110
# when PyMC cannot compute the gradient
111-
except (NotImplementedError, NullTypeGradError, TypeError):
111+
except (NotImplementedError, NullTypeGradError):
112112
jac = "2-point"
113113

114114
opt = optimize.least_squares(cdf_error_fn, x0=list(init_guess.values()), jac=jac)

0 commit comments

Comments
 (0)