From 04a7ea3283318dbec84529b055548042a43e4f4d Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 10 Nov 2012 15:42:27 +0100 Subject: [PATCH] Removed an impossible code path in cache function --- django/core/cache/__init__.py | 2 -- 1 file changed, 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): """