Commit d2a51db3 authored by Ales Zoulek's avatar Ales Zoulek

Use ImproperlyConfigured exception from Django

Users should handle django.core.exceptions.ImproperlyConfigured better
then a custom exception with the same name
parent a52dcb66
from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError
from django.core.exceptions import ImproperlyConfigured
from django.utils.encoding import smart_unicode, smart_str from django.utils.encoding import smart_unicode, smart_str
from django.utils.datastructures import SortedDict from django.utils.datastructures import SortedDict
...@@ -14,10 +15,6 @@ except ImportError: ...@@ -14,10 +15,6 @@ except ImportError:
"Redis cache backend requires the 'redis-py' library") "Redis cache backend requires the 'redis-py' library")
class ImproperlyConfigured(Exception):
"Django Redis Cache is somehow improperly configured"
pass
class CacheConnectionPool(object): class CacheConnectionPool(object):
_connection_pool = None _connection_pool = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment