Browse files

[1.5.x] Removed an impossible code path in cache function

Backport of 04a7ea3 from master.
  • Loading branch information...
1 parent e6bc0c5 commit 48a2917d46571840d3df43f2b434f81166071a17 @claudep claudep committed Nov 10, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 django/core/cache/__init__.py
View
2 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):
"""

0 comments on commit 48a2917

Please sign in to comment.