diff options
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r-- | module/web/ajax/views.py | 3 |
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') |