Skip to content

Commit d3cd2be

Browse files
committed
fixup! toolbox/supsisim/supsisim/scene.py: raise exception when C build fails
1 parent 96f5605 commit d3cd2be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toolbox/supsisim/supsisim/scene.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,10 @@ def _parseAddCDefs(addCDefs: str) -> str:
538538
if flag:
539539
cmd = pyrun + ' tmp.py'
540540
try:
541-
p = subprocess.Popen(cmd, shell=True)
542-
except:
543-
pass
544-
p.wait()
541+
subprocess.run(cmd, shell=True, check=True)
542+
except subprocess.CalledProcessError:
543+
del(dgmBlocks)
544+
return False
545545

546546
# Reset block diagram to previous state
547547
del(dgmBlocks)

0 commit comments

Comments
 (0)