Skip to content

Commit

Permalink
Fixing import snafu
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcharnock committed Apr 18, 2018
1 parent 94f9989 commit 81cad1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lightbus/transports/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from urllib.parse import urlparse

import aioredis
import aioredis.commands
import asyncio

import os
Expand All @@ -17,8 +16,6 @@
from aioredis.util import decode
from collections import OrderedDict

from redis import Redis

from lightbus.api import Api
from lightbus.exceptions import LightbusException, LightbusShutdownInProgress
from lightbus.log import L, Bold, LBullets
Expand Down Expand Up @@ -58,7 +55,7 @@ def set_redis_pool(self, redis_pool: Optional[Redis], url: str=None, connection_
# If they've passed a raw pool then wrap it up in a Redis object.
# aioredis.create_redis_pool() normally does this for us.
redis_pool = Redis(redis_pool)
if not isinstance(redis_pool, (Redis, aioredis.commands.Redis)):
if not isinstance(redis_pool, (Redis, )):
raise InvalidRedisPool(
'Invalid Redis connection provided: {}. If unsure, use aioredis.create_redis_pool() to '
'create your redis connection.'.format(redis_pool)
Expand Down

0 comments on commit 81cad1c

Please sign in to comment.