From 80a9bd084fe217b47e28c1759851893681bdc972 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Sun, 2 Jun 2013 20:08:27 +0200 Subject: [PATCH] Bugfix in validation --- yunohost.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yunohost.py b/yunohost.py index 42e062a1..981e899a 100644 --- a/yunohost.py +++ b/yunohost.py @@ -137,6 +137,8 @@ def validate(pattern, array): Boolean | YunoHostError """ + if array is None: + return True if isinstance(array, str): array = [array] for string in array: