mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Attempt to fix test: handle argparse errors as validation errors
This commit is contained in:
parent
bc1bdbb247
commit
b17a6fa627
1 changed files with 1 additions and 2 deletions
|
@ -207,8 +207,7 @@ class _HTTPArgumentParser(object):
|
||||||
return self._parser.dequeue_callbacks(*args, **kwargs)
|
return self._parser.dequeue_callbacks(*args, **kwargs)
|
||||||
|
|
||||||
def _error(self, message):
|
def _error(self, message):
|
||||||
# TODO: Raise a proper exception
|
raise MoulinetteValidationError(message, raw_msg=True)
|
||||||
raise MoulinetteError(message, raw_msg=True)
|
|
||||||
|
|
||||||
|
|
||||||
class _ActionsMapPlugin(object):
|
class _ActionsMapPlugin(object):
|
||||||
|
|
Loading…
Reference in a new issue