mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-25 01:51:09 +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
994906c673
commit
f637e88086
@ -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