Merge pull request #1875 from coolo/fix_legal_utf8
legal: Fix crash on declining obsrq#670770
This commit is contained in:
commit
ca7c4fd221
@ -128,7 +128,7 @@ class LegalAuto(ReviewBot.ReviewBot):
|
||||
self.message = 'declined'
|
||||
print("unacceptable without user %d" % report.get('id'))
|
||||
return None
|
||||
comment = report.get('result', None)
|
||||
comment = report.get('result', None).encode('utf-8')
|
||||
if comment:
|
||||
self.message = "@{} declined the legal report with the following comment: {}".format(
|
||||
user, comment)
|
||||
|
Loading…
x
Reference in New Issue
Block a user