diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-12-06 15:54:23 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-12-06 16:40:16 +0100 |
commit | 18c20671efefcbec6fe11f9e6ddbbdc2a455b3ca (patch) | |
tree | b2ef094ad3ad07a3e06113093fdb8993f3e97452 | |
parent | f8a1272c89366177672089e54948e7c1f45af5f5 (diff) | |
download | obnam-18c20671efefcbec6fe11f9e6ddbbdc2a455b3ca.tar.gz |
Fix use of RepositoryFileKeyNotAllowed exception
-rw-r--r-- | obnamlib/delegator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obnamlib/delegator.py b/obnamlib/delegator.py index e35fdbbd..3551fc78 100644 --- a/obnamlib/delegator.py +++ b/obnamlib/delegator.py @@ -243,6 +243,7 @@ class RepositoryDelegator(obnamlib.RepositoryInterface): if key not in self.get_allowed_file_keys(): raise obnamlib.RepositoryFileKeyNotAllowed( client_name=generation_id.client_name, + key_name=obnamlib.repo_key_name(key), format=self.format) client = self._lookup_client_by_generation(generation_id) @@ -252,6 +253,7 @@ class RepositoryDelegator(obnamlib.RepositoryInterface): if key not in self.get_allowed_file_keys(): raise obnamlib.RepositoryFileKeyNotAllowed( client_name=generation_id.client_name, + key_name=obnamlib.repo_key_name(key), format=self.format) self._require_got_client_lock(generation_id.client_name) |