Skip to content

Commit 73373ef

Browse files
committed
Fix error
1 parent 9b6f505 commit 73373ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gbmi/utils/images.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def batch_run(
112112
if stderr_write is None:
113113
stderr_write = partial(print, file=sys.stderr)
114114

115+
process = None
115116
try:
116117
process = subprocess.Popen(
117118
[*args, *map(str, images), *post_args],
@@ -137,6 +138,7 @@ def batch_run(
137138

138139
if check and process.returncode != 0:
139140
raise subprocess.CalledProcessError(process.returncode, process.args)
141+
140142
except (FileNotFoundError, subprocess.CalledProcessError, OSError) as e:
141143
if wrap_errs is not None:
142144
stderr_write(f"Error: {e}")

0 commit comments

Comments
 (0)