From a6fb97affa80dc6e8e51d970f9849ae823987753 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Tue, 17 Apr 2012 13:59:00 -0400 Subject: [PATCH] Catch Exception instead of ValueError for accessing our general content cache -- exception thrown changed in django 1.4 --- lib/util/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/cache.py b/lib/util/cache.py index b0c370a035..c6f11f7d66 100644 --- a/lib/util/cache.py +++ b/lib/util/cache.py @@ -11,6 +11,6 @@ from django.core import cache # to returning the default cache. This will happen with dev machines. try: cache = cache.get_cache('general') -except ValueError: +except Exception: cache = cache.cache