From: albertogomcas Date: Wed, 10 Mar 2010 09:03:04 +0000 (+0000) Subject: review.py: fixed crash when a file is not valid X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ece552804fbb6ca20bfde1268fe3789582bc500a;p=hooke.git review.py: fixed crash when a file is not valid --- diff --git a/review.py b/review.py index 0610f6f..7d5e4b1 100644 --- a/review.py +++ b/review.py @@ -82,7 +82,8 @@ class reviewCommands: print 'WARNING: maybe you want to finish!' break nextitem=curveset[i] - nextitem.identify(self.drivers) + if not nextitem.identify(self.drivers): + continue nextplot=self.plotmanip_correct(nextitem.curve.default_plots()[0],nextitem) nextvect=nextplot.vectors nextitem.curve.close_all()