summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-11-10 15:42:27 +0100
committerClaude Paroz <claude@2xlibre.net>2012-11-10 15:45:45 +0100
commit48a2917d46571840d3df43f2b434f81166071a17 (patch)
treedca49e39fe0dfa3ed58e40c48d544e3e31472990
parente6bc0c5babe97af86679ef7fe4f5975eb86f532f (diff)
[1.5.x] Removed an impossible code path in cache function
Backport of 04a7ea328 from master.
-rw-r--r--django/core/cache/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py
index f496c35e2b..d1a02a9f13 100644
--- a/django/core/cache/__init__.py
+++ b/django/core/cache/__init__.py
@@ -93,8 +93,6 @@ def parse_backend_conf(backend, **kwargs):
raise InvalidCacheBackendError("Could not find backend '%s'" % backend)
location = kwargs.pop('LOCATION', '')
return backend, location, kwargs
- raise InvalidCacheBackendError(
- "Couldn't find a cache backend named '%s'" % backend)
def get_cache(backend, **kwargs):
"""