From b50f88abfa12de78af56f6c113d13d0cf4fa93b3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 12 Jan 2015 23:09:48 +0100 Subject: [PATCH] contrib/bkr: fix crash with missing profile argument --- contrib/rh-bkr/bkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/rh-bkr/bkr.py b/contrib/rh-bkr/bkr.py index f5d26b603c..7b4e40bdba 100755 --- a/contrib/rh-bkr/bkr.py +++ b/contrib/rh-bkr/bkr.py @@ -543,7 +543,7 @@ class CmdSubmit(CmdBase): self.subs['TESTS'] = ','.join(sorted(set(tests))) self.subs['ARGV'] = ("\"" + "\" \"".join(sys.argv) + "\"") if sys.argv else '' - self.subs['ARGV_PROFILE'] = ("\"" + "\" \"".join(self.argv_profile) + "\"") if getattr(self, 'argv_profile') else '' + self.subs['ARGV_PROFILE'] = ("\"" + "\" \"".join(self.argv_profile) + "\"") if hasattr(self, 'argv_profile') else '' for (k,v) in self.subs.iteritems(): self._print_substitution(k, v)