Darren Chang
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
src/socketio/async_redis_manager.py
-
src/socketio/redis_manager.py
|
|
@ -70,7 +70,7 @@ class AsyncRedisManager(AsyncPubSubManager): # pragma: no cover |
|
|
|
def _get_redis_module_and_error(self): |
|
|
|
parsed_url = urlparse(self.redis_url) |
|
|
|
schema = parsed_url.scheme.split('+', 1)[0].lower() |
|
|
|
if schema == 'redis': |
|
|
|
if schema in ['redis', 'unix']: |
|
|
|
if aioredis is None or RedisError is None: |
|
|
|
raise RuntimeError('Redis package is not installed ' |
|
|
|
'(Run "pip install redis" ' |
|
|
|
|
|
@ -108,7 +108,7 @@ class RedisManager(PubSubManager): # pragma: no cover |
|
|
|
def _get_redis_module_and_error(self): |
|
|
|
parsed_url = urlparse(self.redis_url) |
|
|
|
schema = parsed_url.scheme.split('+', 1)[0].lower() |
|
|
|
if schema == 'redis': |
|
|
|
if schema in ['redis', 'unix']: |
|
|
|
if redis is None or RedisError is None: |
|
|
|
raise RuntimeError('Redis package is not installed ' |
|
|
|
'(Run "pip install redis" ' |
|
|
|