mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-12 02:51:30 +00:00
Make sure reason is a list, even with python 3
Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
parent
62c1c9ec3c
commit
14107520d7
@ -223,7 +223,7 @@ class Excuse(object):
|
|||||||
excusedata["forced-reason"] = self.reason.keys()
|
excusedata["forced-reason"] = self.reason.keys()
|
||||||
excusedata["reason"] = []
|
excusedata["reason"] = []
|
||||||
else:
|
else:
|
||||||
excusedata["reason"] = self.reason.keys()
|
excusedata["reason"] = list(self.reason.keys())
|
||||||
excusedata["is-candidate"] = self.is_valid
|
excusedata["is-candidate"] = self.is_valid
|
||||||
return excusedata
|
return excusedata
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user