Make sure reason is a list, even with python 3

Signed-off-by: Ivo De Decker <ivodd@debian.org>
debian
Ivo De Decker 10 years ago committed by Niels Thykier
parent 994906c673
commit f637e88086

@ -223,7 +223,7 @@ class Excuse(object):
excusedata["forced-reason"] = self.reason.keys()
excusedata["reason"] = []
else:
excusedata["reason"] = self.reason.keys()
excusedata["reason"] = list(self.reason.keys())
excusedata["is-candidate"] = self.is_valid
return excusedata

Loading…
Cancel
Save