mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Depreciation warning for --hooks was always shown (#333)
This commit is contained in:
parent
c5098cd90e
commit
3afbf0f7b9
1 changed files with 1 additions and 1 deletions
|
@ -2093,7 +2093,7 @@ def backup_restore(auth, name,
|
|||
logger.warning("--ignore-hooks is deprecated and will be removed in the"
|
||||
"future. Please use --ignore-system instead.")
|
||||
ignore_system = ignore_hooks
|
||||
if hooks != []:
|
||||
if hooks != [] and hooks is not None:
|
||||
logger.warning("--hooks is deprecated and will be removed in the"
|
||||
"future. Please use --system instead.")
|
||||
system = hooks
|
||||
|
|
Loading…
Add table
Reference in a new issue