Commit 2b8344e6 authored by Markus Lehtonen's avatar Markus Lehtonen Committed by Guido Günther

gbp.format: fix one typo and indentation

Signed-off-by: default avatarMarkus Lehtonen <markus.lehtonen@linux.intel.com>
parent f0890215
......@@ -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))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment