From 2b8344e6e6d95e5db9a4237df0a3956316af137e Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 3 Feb 2015 15:56:58 +0200 Subject: gbp.format: fix one typo and indentation Signed-off-by: Markus Lehtonen --- gbp/format.py | 5 +++-- 1 file 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)) -- cgit v1.2.3