diff options
Diffstat (limited to 'gbp/format.py')
-rw-r--r-- | gbp/format.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gbp/format.py b/gbp/format.py index 2a4af15..9c37bb1 100644 --- a/gbp/format.py +++ b/gbp/format.py @@ -20,7 +20,7 @@ from gbp.errors import GbpError def format_msg(msg, args): """ - Format a strin with the given dict. Be a bit more verbose than + Format a string with the given dict. Be a bit more verbose than default python about the error cause. >>> format_msg("%(foo)", {}) @@ -39,6 +39,7 @@ def format_msg(msg, args): except ValueError as e: raise GbpError("Failed to format %s with %s: %s" % (msg, args, e)) except KeyError as e: - raise GbpError("Failed to format %s: Missing value %s in %s" % (msg, e, args)) + raise GbpError("Failed to format %s: Missing value %s in %s" % + (msg, e, args)) |