1.0-maint merge fixup (hexlify..decode -> bin_to_hex)

This commit is contained in:
Marian Beermann 2016-07-08 13:29:48 +02:00
parent aade62c9f9
commit 11e02461d2
No known key found for this signature in database
GPG Key ID: 9B8450B91D1362C1
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ Number of files: {0.stats.nfiles}'''.format(
try: try:
self.cache.chunk_decref(id, stats) self.cache.chunk_decref(id, stats)
except KeyError: except KeyError:
cid = hexlify(id).decode('ascii') cid = bin_to_hex(id)
raise ChunksIndexError(cid) raise ChunksIndexError(cid)
except Repository.ObjectNotFound as e: except Repository.ObjectNotFound as e:
# object not in repo - strange, but we wanted to delete it anyway. # object not in repo - strange, but we wanted to delete it anyway.