Commits

offline committed 4fa00a4

try except around cookie deletion added to allow poeple to see the real exception

Comments (0)

Files changed (2)

flashcookie/middleware.py

         if hasattr(request, 'flash') and len(request.flash):
             self._set_messages(request, response)
         else:
-            response.delete_cookie('flashcookie')
+            try:
+                response.delete_cookie('flashcookie')
+            except AttributeError:
+                pass
         return response
 from setuptools import setup, find_packages
 setup(
     name = "django-flashcookie",
-    version = "0.1.3",
+    version = "0.1.4",
     packages = find_packages(),
     author = "Anderson",
     author_email = "self.anderson@gmail.com",