review.py: fixed crash when a file is not valid
authoralbertogomcas <devnull@localhost>
Wed, 10 Mar 2010 09:03:04 +0000 (09:03 +0000)
committeralbertogomcas <devnull@localhost>
Wed, 10 Mar 2010 09:03:04 +0000 (09:03 +0000)
review.py

index 0610f6fe2861c2d68704d4ad2f9f4b04ef31d4c6..7d5e4b13e304167c94984f7018fd3c8366e52701 100644 (file)
--- 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()