Skip to content
Snippets Groups Projects
Commit a6fb97af authored by David Ormsbee's avatar David Ormsbee
Browse files

Catch Exception instead of ValueError for accessing our general content cache...

Catch Exception instead of ValueError for accessing our general content cache -- exception thrown changed in django 1.4
parent 2905ac7c
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment