2
0
Эх сурвалжийг харах

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

Marian Beermann 9 жил өмнө
parent
commit
11e02461d2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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:
                 self.cache.chunk_decref(id, stats)
             except KeyError:
-                cid = hexlify(id).decode('ascii')
+                cid = bin_to_hex(id)
                 raise ChunksIndexError(cid)
             except Repository.ObjectNotFound as e:
                 # object not in repo - strange, but we wanted to delete it anyway.