Don't quit when _one_ record is invalid
authorPieter Lexis <pieter.lexis@os3.nl>
Fri, 27 Jan 2012 16:54:36 +0000 (17:54 +0100)
committerPieter Lexis <pieter.lexis@os3.nl>
Fri, 27 Jan 2012 16:54:36 +0000 (17:54 +0100)
swede

diff --git a/swede b/swede
index ee9d76824dae9f14d4148bbd0f4c633d5bc678f7..ca204f7a6ee9ff54bcd44ac1deedbc70519b8b88 100755 (executable)
--- a/swede
+++ b/swede
@@ -424,7 +424,7 @@ if __name__ == '__main__':
                                record.isValid(raiseException=True)
                        except RecordValidityException, e:
                                print sys.stderr, 'Error: %s' % str(e)
-                               sys.exit(1)
+                               continue
                        else:
                                if not args.quiet:
                                        print 'This record is valid (well-formed).'