If something happens and an error happens, return so that status is not reset later on

This commit is contained in:
blitzmann
2014-11-13 11:18:44 -05:00
parent 7a6e3ac665
commit 05c73d1b1b

View File

@@ -203,6 +203,8 @@ class GraphFrame(wx.Frame):
legend.append(fit.name)
except:
self.SetStatusText("Invalid values in '%s'" % fit.name)
self.canvas.draw()
return
if self.legendFix and len(legend) > 0:
leg = self.subplot.legend(tuple(legend), "upper right" , shadow = False)