mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
tools_upgrade: raise a Yunohost error, not a raw exception, when misusing args
This commit is contained in:
parent
27f8809a2c
commit
49b444e480
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ def tools_upgrade(operation_logger, target=None):
|
|||
raise YunohostValidationError("dpkg_lock_not_available")
|
||||
|
||||
if target not in ["apps", "system"]:
|
||||
raise Exception(
|
||||
raise YunohostValidationError(
|
||||
"Uhoh ?! tools_upgrade should have 'apps' or 'system' value for argument target"
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue