[fix] hotfix for very obvious bug

This commit is contained in:
Laurent Peuch 2017-01-15 09:03:55 +01:00
parent 8f28d152d1
commit 6c200ad9c9

View file

@ -194,7 +194,7 @@ class RequiredParameter(_ExtraParameter):
def __call__(self, required, arg_name, arg_value): def __call__(self, required, arg_name, arg_value):
if required and (arg_value is None or arg_value == ''): if required and (arg_value is None or arg_value == ''):
logger.debug("argument '%s' is required", logger.debug("argument '%s' is required",
v, arg_name, pattern) arg_name)
raise MoulinetteError(errno.EINVAL, raise MoulinetteError(errno.EINVAL,
m18n.g('argument_required', m18n.g('argument_required',
argument=arg_name)) argument=arg_name))