mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] don't use catchall exceptions episode 2
This commit is contained in:
parent
82bc0e829a
commit
8566eaaa1f
1 changed files with 2 additions and 2 deletions
|
@ -380,7 +380,7 @@ class ActionsMapParser(BaseActionsMapParser):
|
|||
ret = self._parser.parse_args(args)
|
||||
except SystemExit:
|
||||
raise
|
||||
except:
|
||||
except Exception:
|
||||
logger.exception("unable to parse arguments '%s'", " ".join(args))
|
||||
raise MoulinetteError("error_see_log")
|
||||
|
||||
|
@ -404,7 +404,7 @@ class ActionsMapParser(BaseActionsMapParser):
|
|||
ret = self._parser.parse_args(args)
|
||||
except SystemExit:
|
||||
raise
|
||||
except:
|
||||
except Exception:
|
||||
logger.exception("unable to parse arguments '%s'", " ".join(args))
|
||||
raise MoulinetteError("error_see_log")
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue