Permalink
Browse files

pass on some errors

  • Loading branch information...
1 parent 6d389fb commit 7508649bffbc770e1ff4a359a6c877eadb45513a @sorl committed Feb 24, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 setup.py
  2. +4 −1 utkik/dispatch.py
View
@@ -10,7 +10,7 @@ def run(self):
setup(
name='aino-utkik',
- version='0.7.7',
+ version='0.7.8',
description='Small, clean code with a lazy view dispatcher and class based views for Django.',
long_description=open('README.rst').read(),
author='Mikko Hellsing',
View
@@ -2,7 +2,8 @@
import sys
from django.conf import settings
from django.core import urlresolvers
-from django.core.exceptions import ImproperlyConfigured
+from django.core.exceptions import ImproperlyConfigured, PermissionDenied
+from django.http import Http404
from functools import update_wrapper
from inspect import isclass
from utkik.utils import import_string, cached_property, uncamel
@@ -59,6 +60,8 @@ def __call__(self, request, *args, **kwargs):
view = self.view
if callable(view):
return view(request, *args, **kwargs)
+ except (Http404, PermissionDenied, SystemExit):
+ raise
except Exception, ex:
try:
cls, e, trace = sys.exc_info()

0 comments on commit 7508649

Please sign in to comment.