From 2c38acfd051755a3f70a05e988b29498337fc8d9 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Thu, 10 Jun 2010 07:51:50 +0300 Subject: [PATCH] Raise KeyError instead of a string exception. Fixes debian bug #585225: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585225 --- gitstats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstats b/gitstats index adce52e..f382c77 100755 --- a/gitstats +++ b/gitstats @@ -1112,7 +1112,7 @@ class GitStats: if o == '-c': key, value = v.split('=', 1) if key not in conf: - raise 'Error: no such key "%s" in config' % key + raise KeyError('no such key "%s" in config' % key) if isinstance(conf[key], int): conf[key] = int(value) else: -- 2.11.4.GIT