summaryrefslogtreecommitdiffstats
path: root/module/utils
diff options
context:
space:
mode:
Diffstat (limited to 'module/utils')
-rw-r--r--module/utils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/utils/__init__.py b/module/utils/__init__.py
index db43f330d..37e65c738 100644
--- a/module/utils/__init__.py
+++ b/module/utils/__init__.py
@@ -60,7 +60,7 @@ def compare_time(start, end):
else: return False
def to_list(value):
- return value if type(value) == list else [value]
+ return value if type(value) == list else ([value] if value is not None else [])
def formatSize(size):
print "Deprecated formatSize, use format_size"