Skip to content

Commit

Permalink
Fix encoding error (python 3) (pricingassistant#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Chauve authored and sylvinus committed Dec 13, 2016
1 parent 92b7e0d commit 84faf4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrq/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def unserialize_job_ids(self, job_ids):
if len(job_ids) == 0 or self.use_large_ids:
return job_ids
else:
return [binascii.hexlify(x).decode('ascii') for x in job_ids]
return [binascii.hexlify(x.encode('utf-8') if isinstance(x, str) else x).decode('ascii') for x in job_ids]

def _get_pausable_id(self):
"""
Expand Down

0 comments on commit 84faf4a

Please sign in to comment.