Permalink
Browse files

fixed exception handling

  • Loading branch information...
1 parent 1315875 commit 6cb0f0c5358f9555b39a2d3918337759a90b87d9 Justin Quick committed Apr 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 varnishapp/views.py
View
@@ -16,7 +16,8 @@ def management(request):
return HttpResponseRedirect(request.path)
try:
stats = get_stats()
- except Exception as e:
+ errors = {}
+ except:
stats = None
errors = {"stats":"Impossible to access the stats for server : %s" \
%getattr(settings, 'VARNISH_MANAGEMENT_ADDRS', ())}

0 comments on commit 6cb0f0c

Please sign in to comment.