From: Emanuele Aina Date: Mon, 5 Apr 2021 20:40:57 +0000 (+0200) Subject: git: Actually include the missing key name in the KeyError message X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26d6cebc34b94360e27c428ef91ecca30a48d200;p=tools%2Fgit-buildpackage.git git: Actually include the missing key name in the KeyError message Signed-off-by: Emanuele Aina --- diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 75b3e035..63957789 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1119,7 +1119,7 @@ class GitRepository(object): """ value, ret = self._git_getoutput('config', [name]) if ret: - raise KeyError("'%s' not found in git config") + raise KeyError("'%s' not found in git config" % name) return value[0].decode()[:-1] # first line with \n ending removed def set_config(self, name, value):