From 3afbf0f7b9f68a7527bc67a856f3d1a688b848fe Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 23 Jul 2017 01:56:05 +0200 Subject: [PATCH] [fix] Depreciation warning for --hooks was always shown (#333) --- src/yunohost/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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