Skip to content

Commit bdb671c

Browse files
chriswmackeyChris Mackey
authored and
Chris Mackey
committed
fix(util): Catch the case of unreported return code on Mac
1 parent 11f7797 commit bdb671c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

honeybee_radiance_command/_command_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run_command(input_command, env=None, cwd=None, mute=True):
9595
except Exception: # nothing in stderr
9696
pass
9797

98-
if rc != 0:
98+
if rc != 0 and isinstance(rc, int): # return code not included on Mac
9999
raise RuntimeError('None zero return code: %d' % rc)
100100

101101
# only gets here is successful

0 commit comments

Comments
 (0)