Browse Source

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

Marian Beermann 9 years ago
parent
commit
11e02461d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/archive.py

+ 1 - 1
src/borg/archive.py

@@ -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.