]> git.decadent.org.uk Git - dak.git/commitdiff
catch UnknownFormatError in process-unchecked/check_dsc
authorThomas Viehmann <tv@beamnet.de>
Thu, 19 Jun 2008 18:20:02 +0000 (18:20 +0000)
committerThomas Viehmann <tv@beamnet.de>
Thu, 19 Jun 2008 18:20:02 +0000 (18:20 +0000)
ChangeLog
dak/process_unchecked.py

index a779c6ffda10fd2f1827e3d338f7d289cf38ec97..dfc63f89cd16ae59ce5d6f34b3aa03b0a7cdb94d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-19  Thomas Viehmann  <tv@beamnet.de>
+
+       * dak/process_unchecked.py (check_dsc): Catch UnknownFormatError
+       and reject
+
 2008-06-15  Joerg Jaspert  <joerg@debian.org>
 
        * config/debian/cron.weekly: Work around a git bug until git is
index 9b8d4de5ca3b12e86b54acd789a0af1daa4972d3..0e2d61669dc983d4686fd8afc1005a3826fdfc0f 100755 (executable)
@@ -700,6 +700,9 @@ def check_dsc():
     except NoFilesFieldError:
         reject("%s: no Files: field." % (dsc_filename))
         return 0
+    except UnknownFormatError, format:
+        reject("%s: unknown format '%s'." % (filename, format))
+        return 0
     except ParseChangesError, line:
         reject("%s: parse error, can't grok: %s." % (dsc_filename, line))
         return 0