summaryrefslogtreecommitdiffstats
path: root/module/web/ajax/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r--module/web/ajax/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py
index 82e478af3..7d5c1884c 100644
--- a/module/web/ajax/views.py
+++ b/module/web/ajax/views.py
@@ -59,7 +59,7 @@ def add_package(request):
try:
f = request.FILES['add_file']
- if name == None or name == "":
+ if name is None or name == "":
name = f.name
fpath = join(settings.PYLOAD.get_conf_val("general","download_folder"), "tmp_"+ f.name)
@@ -71,7 +71,7 @@ def add_package(request):
except:
pass
- if name == None or name == "":
+ if name is None or name == "":
return HttpResponseServerError()
links = map(lambda x: x.strip(), links)