From 855387b013b8d2706ad22edd323e877615b91267 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 4 Dec 2015 17:51:06 +0100 Subject: [PATCH] Provide default if ADT_PPAS option is absent --- britney.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 4cd35b9..4c8080a 100755 --- a/britney.py +++ b/britney.py @@ -479,7 +479,10 @@ class Britney(object): else: self.__log("Ignoring ADT_ARCHES %s as it is not in architectures list" % arch) self.options.adt_arches = adt_arches - self.options.adt_ppas = self.options.adt_ppas.strip().split() + try: + self.options.adt_ppas = self.options.adt_ppas.strip().split() + except AttributeError: + self.options.adt_ppas = [] def __log(self, msg, type="I"): """Print info messages according to verbosity level