We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d9233e commit 671d704Copy full SHA for 671d704
pymc/sampling/mcmc.py
@@ -1300,12 +1300,7 @@ def _iter_sample(
1300
)
1301
1302
yield diverging
1303
- except KeyboardInterrupt:
1304
- if isinstance(trace, ZarrChain):
1305
- trace.record_sampling_state(step=step)
1306
- trace.close()
1307
- raise
1308
- except BaseException:
+ except (KeyboardInterrupt, BaseException):
1309
if isinstance(trace, ZarrChain):
1310
trace.record_sampling_state(step=step)
1311
trace.close()
0 commit comments