From f3aaffdb39a422ee7b64ba435b16e0f227d5b6dd Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Mon, 4 Jul 2016 00:55:12 +0200 Subject: [PATCH] Repository: fix hints file unknown version error handling bug --- borg/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/repository.py b/borg/repository.py index fa3919f61..972baab09 100644 --- a/borg/repository.py +++ b/borg/repository.py @@ -221,7 +221,7 @@ class Repository: hints = msgpack.unpack(fd) hints_version = hints[b'version'] if hints_version not in (1, 2): - raise ValueError('Unknown hints file version: %d' % hints['version']) + raise ValueError('Unknown hints file version: %d' % hints_version) self.segments = hints[b'segments'] if hints_version == 1: self.compact = set(hints[b'compact'])