From 1795e1ee531b95ba9235ae645703a954453db2bf Mon Sep 17 00:00:00 2001 From: Adam Wen Date: Thu, 16 Oct 2014 18:47:32 +0800 Subject: [PATCH] fix decode --- rq/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index a2cf6a2..6ba0807 100644 --- a/rq/job.py +++ b/rq/job.py @@ -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')))