From c0027c3ec691bf336bd1e23214add413ac7ddcae Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 28 May 2013 21:00:58 +0200 Subject: [PATCH] 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. --- daklib/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.5