fix decode

This commit is contained in:
Adam Wen 2014-10-16 18:47:32 +08:00
parent cd0230cae3
commit 1795e1ee53
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class Job(object):
self.created_at = to_date(as_text(obj.get('created_at')))
self.origin = as_text(obj.get('origin'))
self.description = (as_text(obj.get('description')).decode('unicode_escape')
self.description = (as_text(obj.get('description')).decode('utf-8')
if obj.get('description') else None)
self.enqueued_at = to_date(as_text(obj.get('enqueued_at')))
self.ended_at = to_date(as_text(obj.get('ended_at')))