diff --git a/src/yunohost/backup.py b/src/yunohost/backup.py index a195763b4..f4b6b7fe7 100644 --- a/src/yunohost/backup.py +++ b/src/yunohost/backup.py @@ -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