contrib/bkr: fix crash with missing profile argument

This commit is contained in:
Thomas Haller 2015-01-12 23:09:48 +01:00
parent 6f167d957f
commit b50f88abfa

View file

@ -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)