Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Nov 5, 2024
1 parent 38fb6a7 commit 099f835
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stanley/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

from stanley.settings import REDIS_URL

if "rediss://" in REDIS_URL:
kwargs = dict(
ssl_cert_reqs=None,
)
else:
kwargs = dict()

redis_storage = redis.from_url(
url=REDIS_URL,
decode_responses=True,
ssl_cert_reqs=None,
**kwargs,
)

0 comments on commit 099f835

Please sign in to comment.