Attempt to fix test: handle argparse errors as validation errors

This commit is contained in:
Alexandre Aubin 2021-03-23 00:12:15 +01:00
parent bc1bdbb247
commit b17a6fa627

View file

@ -207,8 +207,7 @@ class _HTTPArgumentParser(object):
return self._parser.dequeue_callbacks(*args, **kwargs)
def _error(self, message):
# TODO: Raise a proper exception
raise MoulinetteError(message, raw_msg=True)
raise MoulinetteValidationError(message, raw_msg=True)
class _ActionsMapPlugin(object):