Skip to content

Commit 0fbb18c

Browse files
maxxiefjvc00kiemon5ter
authored andcommitted
if user defaults to None as explicit param, set to empty dict
1 parent 7408566 commit 0fbb18c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pyop/storage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ class RedisWrapper(StorageBase):
121121
"""
122122

123123
def __init__(self, db_uri, collection, ttl=None, options={}):
124+
if options is None:
125+
options = {}
126+
124127
if not _has_redis:
125128
raise ImportError("redis module is required but it is not available")
126129
self._db = Redis.from_url(db_uri, decode_responses=True, **options.get('redis_kwargs', {}))

0 commit comments

Comments
 (0)