minor fixes
This commit is contained in:
parent
f5ba58c59e
commit
9d08fba82c
|
|
@ -46,6 +46,9 @@ class FilterModule(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def ensure_list(data: (str, list)) -> list:
|
def ensure_list(data: (str, list)) -> list:
|
||||||
# if user supplied a string instead of a list => convert it to match our expectations
|
# if user supplied a string instead of a list => convert it to match our expectations
|
||||||
|
if data is None:
|
||||||
|
return []
|
||||||
|
|
||||||
if isinstance(data, list):
|
if isinstance(data, list):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue