X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=hooke.py;h=6a8a921949474b23473e91a3965335225e66d19b;hb=f432685edc50747965a69af868a3da0a9006656d;hp=6bceecbd5d6043c30c2f971b0821d2f01c609a17;hpb=1c3287a2d736a191b3ac2d2b226ded4719bc512d;p=hooke.git diff --git a/hooke.py b/hooke.py index 6bceecb..6a8a921 100755 --- a/hooke.py +++ b/hooke.py @@ -688,12 +688,15 @@ class MainWindow(wx.Frame): ''' if dest==None: dest=self.current_plot_dest - - plot=None - for aplot in self.plots: - if aplot.destination == dest: - plot=aplot - return plot + try: + plot=None + for aplot in self.plots: + if aplot.destination == dest: + plot=aplot + return plot + except: + print "No curve available" + return None def _replot(self): '''