Skip to content

Commit 84faf4a

Browse files
Adrien Chauvesylvinus
authored andcommitted
Fix encoding error (python 3) (#141)
1 parent 92b7e0d commit 84faf4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mrq/queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def unserialize_job_ids(self, job_ids):
168168
if len(job_ids) == 0 or self.use_large_ids:
169169
return job_ids
170170
else:
171-
return [binascii.hexlify(x).decode('ascii') for x in job_ids]
171+
return [binascii.hexlify(x.encode('utf-8') if isinstance(x, str) else x).decode('ascii') for x in job_ids]
172172

173173
def _get_pausable_id(self):
174174
"""

0 commit comments

Comments
 (0)