summaryrefslogtreecommitdiffstats
path: root/module/utils
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-03-20 14:57:45 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-03-20 14:57:45 +0100
commit50d4df8b4d48b855bd18e9922355b7f3f2b4da4e (patch)
tree6301b05677a90cf86f131d5a7ae3f879b38e84d2 /module/utils
parentrenamed hooks to addons, new filemanager and database, many new api methods (diff)
downloadpyload-50d4df8b4d48b855bd18e9922355b7f3f2b4da4e.tar.xz
captcha decrypting for all plugin types, new interaction manager
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"