Skip to content

Commit

Permalink
Raise KeyError instead of a string exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxu committed Jun 10, 2010
1 parent bb75f25 commit 2c38acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstats
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2c38acf

Please sign in to comment.