diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2015-02-03 15:56:58 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 21:32:25 +0100 |
commit | 2b8344e6e6d95e5db9a4237df0a3956316af137e (patch) | |
tree | f9c91c379b4873f1cad794c2f1199c0918f9b79a | |
parent | f0890215c84ecf5bf4f87e3c17563f0b13fd739e (diff) |
gbp.format: fix one typo and indentation
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-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)) |