Armin Ronacher  committed d297744

None responses fail properly now. This fixes #24

  • Participants
  • Parent commits 4f7250d
  • Branches default

Comments (0)

Files changed (1)

         :param rv: the return value from the view function
         if rv is None:
-            from warnings import warn
-            warn(Warning('View function did not return a response'),
-                 stacklevel=2)
-            return u''
+            raise ValueError('View function did not return a response')
         if isinstance(rv, self.response_class):
             return rv
         if isinstance(rv, basestring):