Skip to content

Commit 671d704

Browse files
committed
Minor mcmc code cleanup
1 parent 9d9233e commit 671d704

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pymc/sampling/mcmc.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1300,12 +1300,7 @@ def _iter_sample(
13001300
)
13011301

13021302
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:
1303+
except (KeyboardInterrupt, BaseException):
13091304
if isinstance(trace, ZarrChain):
13101305
trace.record_sampling_state(step=step)
13111306
trace.close()

0 commit comments

Comments
 (0)