git: Actually include the missing key name in the KeyError message
authorEmanuele Aina <emanuele.aina@collabora.com>
Mon, 5 Apr 2021 20:40:57 +0000 (22:40 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 30 Sep 2021 14:23:12 +0000 (16:23 +0200)
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
gbp/git/repository.py

index 75b3e035766e5750ac9f2992c2d8d235a8057381..6395778986f428937d1c802a35f59409e6421d40 100644 (file)
@@ -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):