mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Bugfix in validation
This commit is contained in:
parent
dedaebbc31
commit
80a9bd084f
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ def validate(pattern, array):
|
||||||
Boolean | YunoHostError
|
Boolean | YunoHostError
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if array is None:
|
||||||
|
return True
|
||||||
if isinstance(array, str):
|
if isinstance(array, str):
|
||||||
array = [array]
|
array = [array]
|
||||||
for string in array:
|
for string in array:
|
||||||
|
|
Loading…
Add table
Reference in a new issue