Catch Exception instead of ValueError for accessing our general content cache -- exception thrown changed in django 1.4

This commit is contained in:
David Ormsbee
2012-04-17 13:59:00 -04:00
parent 2905ac7cfe
commit a6fb97affa

View File

@@ -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