summaryrefslogtreecommitdiffstats
path: root/module/web/ajax
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-29 17:05:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-29 17:05:45 +0200
commit252cf9964a2ebc78a589f75db2a7be0d25cac512 (patch)
tree0f4cd1a7949f8a3dc87eaed35f248170ee421943 /module/web/ajax
parentmany new stuff, some things already working (diff)
downloadpyload-252cf9964a2ebc78a589f75db2a7be0d25cac512.tar.xz
more improvements and cleaned some imports
Diffstat (limited to 'module/web/ajax')
-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')