]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/upload.py: handle missing Architecture field like an empty one
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 28 May 2013 19:00:58 +0000 (21:00 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 28 May 2013 19:02:55 +0000 (21:02 +0200)
This should allow dak to reject some more invalid uploads without throwing an
unhandled exception.

daklib/upload.py

index d6a527afcd32c7efa541546cc505c00041304282..cabec15116ad898e78a8d48f7ab2743fd2735b07 100644 (file)
@@ -281,7 +281,7 @@ class Changes(object):
         """list of architectures included in the upload
         @type: list of str
         """
-        return self.changes['Architecture'].split()
+        return self.changes.get('Architecture', '').split()
 
     @property
     def distributions(self):