Skip to content

Commit 57c1632

Browse files
committed
fix: allow empty handlers
1 parent 2143be7 commit 57c1632

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/snake/core/engine/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ def __call__(
221221
else:
222222
sim_conf.TR_eff = sim_conf.seq.TR
223223

224+
if handlers is None:
225+
handlers = []
226+
224227
if any(h.__updates_sim_conf__ for h in handlers) and resample_early:
225228
self.log.warning(
226229
"Handlers are updating the sim_conf, incompatible with resample_early"

0 commit comments

Comments
 (0)