We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f805239 commit ccdaed3Copy full SHA for ccdaed3
sentry_sdk/integrations/redis.py
@@ -115,14 +115,14 @@ def __init__(self, max_data_size=_DEFAULT_MAX_DATA_SIZE):
115
def setup_once():
116
# type: () -> None
117
try:
118
- import redis
+ from redis import StrictRedis, client
119
except ImportError:
120
raise DidNotEnable("Redis client not installed")
121
122
- patch_redis_client(redis.StrictRedis, is_cluster=False)
123
- patch_redis_pipeline(redis.client.Pipeline, False, _get_redis_command_args)
+ patch_redis_client(StrictRedis, is_cluster=False)
+ patch_redis_pipeline(client.Pipeline, False, _get_redis_command_args)
124
125
- strict_pipeline = redis.client.StrictPipeline # type: ignore
+ strict_pipeline = client.StrictPipeline # type: ignore
126
except AttributeError:
127
pass
128
else:
0 commit comments