From: Ansgar Burchardt Date: Tue, 28 May 2013 19:00:58 +0000 (+0200) Subject: daklib/upload.py: handle missing Architecture field like an empty one X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c0027c3ec691bf336bd1e23214add413ac7ddcae;p=dak.git daklib/upload.py: handle missing Architecture field like an empty one This should allow dak to reject some more invalid uploads without throwing an unhandled exception. --- diff --git a/daklib/upload.py b/daklib/upload.py index d6a527af..cabec151 100644 --- a/daklib/upload.py +++ b/daklib/upload.py @@ -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):