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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py
index 5e4d4710b..558d35415 100644
--- a/module/web/ajax/views.py
+++ b/module/web/ajax/views.py
@@ -11,6 +11,8 @@ from django.utils import simplejson
from django.utils.translation import ugettext as _
import base64
+from traceback import print_exc
+
def format_time(seconds):
seconds = int(seconds)
@@ -85,7 +87,8 @@ def remove_link(request, id):
try:
settings.PYLOAD.del_links([int(id)])
return JsonResponse("sucess")
- except:
+ except Exception, e:
+ print_exc()
return HttpResponseServerError()
@permission('pyload.can_see_dl')