[dak/master] 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 d6a527a..cabec15 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):
--
1.7.10.4
Reply to: