Skip to content

Commit b4be57b

Browse files
committed
Ensure working code path on CPython
1 parent ee9d0f0 commit b4be57b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/imcflibs/imagej/misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,8 @@ def save_script_parameters(
852852
# TODO: discuss if this approach is fine within Fiji/Jython
853853
try:
854854
val = inputs.get(key)
855+
if not val: # required for testing in CPython
856+
raise KeyError("failure looking up value for '%s'" % key)
855857
f.write("%s: %s\n" % (key, str(val)))
856858
saved += 1
857859
except:

0 commit comments

Comments
 (0)