How to ignore pssplot's error message

asked 2022-05-07 21:52:20 -0500

sugui_ gravatar image

Hello everyone, I want to create .jpg file automatically using python, this is my code:

for i in range(0,10):
filename = "case" + str(i+1)

pssplot.dragdropplotdata(filename,r"""2 - ANGL   11[GEN#1      22.000]1""")
pssplot.dragdropplotdata(filename,r"""3 - ANGL   21[GEN#2    16.500]1""")
pssplot.dragdropplotdata(filename,r"""4 - ANGL   31[GEN#3      16.500]1""")


When running this code, sometimes an error message(Axis Maximum Value must be >= Minimum) will come out and I need to skip the case manually. Is there any way to ignore this error message and the code still running well?

edit retag flag offensive close merge delete