From b80b8c533ade9a4aef153ead904387a82dc8d97e Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 27 Jun 2017 23:07:44 -0700 Subject: [PATCH] Fix wrong log message Britney2's Hint object has no 'days' attribute, so we ought not try to print it. Seen in the wild for several hours during the Artful Alpha 1 milestone freeze, when a duplicate block hint caused britney to fail to run due to the resulting exception. --- britney.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/britney.py b/britney.py index de20218..847aecc 100755 --- a/britney.py +++ b/britney.py @@ -1077,9 +1077,9 @@ class Britney(object): (x, package, hint.version, hint.user, hint2.version, hint2.user), type="W") hint.set_active(False) else: - self.log("Overriding %s[%s] = ('%s', '%s', '%s') with ('%s', '%s', '%s')" % - (x, package, hint2.version, hint2.user, hint2.days, - hint.version, hint.user, hint.days), type="W") + self.log("Overriding %s[%s] = ('%s', '%s') with ('%s', '%s')" % + (x, package, hint2.version, hint2.user, + hint.version, hint.user), type="W") hint2.set_active(False) z[package] = key