summaryrefslogtreecommitdiffstats
path: root/module/web/ajax
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-29 12:09:42 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-29 12:09:42 +0200
commit2ba07aa53d2af572af2c5a43e77725abd46e1b13 (patch)
tree89ff915a3a476dd9431d38c6e2b39b9de1aeb0f5 /module/web/ajax
parentAdded tag working for changeset 3cca18acfe7d (diff)
downloadpyload-2ba07aa53d2af572af2c5a43e77725abd46e1b13.tar.xz
many new stuff, some things already working
Diffstat (limited to 'module/web/ajax')
-rw-r--r--module/web/ajax/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py
index c52be119f..5e4d4710b 100644
--- a/module/web/ajax/views.py
+++ b/module/web/ajax/views.py
@@ -75,6 +75,7 @@ def add_package(request):
links = map(lambda x: x.strip(), links)
links = filter(lambda x: x != "", links)
+
settings.PYLOAD.add_package(name, links, queue)
return JsonResponse("success")
@@ -199,7 +200,7 @@ def remove_package(request, id):
try:
settings.PYLOAD.del_packages([int(id)])
return JsonResponse("sucess")
- except:
+ except Exception, e:
return HttpResponseServerError()
@permission('pyload.can_add_dl')