Skip to content

Commit

Permalink
1121 fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed Nov 21, 2020
1 parent 4697962 commit 0a6901a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions presg.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,10 @@ def preSG(sg_xml, analysis, ppcmd='prevabs', solver='swiftcomp', write_input=Tru
else:
FNULL = open(os.devnull, 'w')
sbp.call(cmd, stdout=FNULL, stderr=sbp.STDOUT)
return fn_sg_in, smdim
# except:
# # e = sys.exc_info()[0]
# e = tb.format_exc()
# print('[ERROR] ', e)
# return

return fn_sg_in, smdim


else:
try:
sgdim = int(xr_sg.get('sgdim'))
Expand Down

0 comments on commit 0a6901a

Please sign in to comment.