Skip to content

Commit

Permalink
fix(util): Catch the case of unreported return code on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jun 7, 2022
1 parent 11f7797 commit bdb671c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion honeybee_radiance_command/_command_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run_command(input_command, env=None, cwd=None, mute=True):
except Exception: # nothing in stderr
pass

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

# only gets here is successful
Expand Down

0 comments on commit bdb671c

Please sign in to comment.