Skip to content

Commit

Permalink
0814
Browse files Browse the repository at this point in the history
  • Loading branch information
Su Tian authored and Su Tian committed Aug 15, 2020
1 parent 777779b commit c171040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion presg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import subprocess as sbp
import numpy as np
import traceback as tb
import xml.etree.ElementTree as et
import msgpi.sg as sgm
import msgpi.io.iosc as miosc
Expand Down Expand Up @@ -303,7 +304,8 @@ def preSG(sg_xml, analysis, solver='swiftcomp', write_input=True, scrnout=True):
sbp.call(cmd, stdout=FNULL, stderr=sbp.STDOUT)
return fn_sg_in, smdim
except:
e = sys.exc_info()[0]
# e = sys.exc_info()[0]
e = tb.format_exc()
print('[ERROR] ', e)
return
else:
Expand Down

0 comments on commit c171040

Please sign in to comment.