Skip to content

Commit c3ac11b

Browse files
author
Matias Melograno
committed
capturing error
1 parent 18b492e commit c3ac11b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

splitio/storage/adapters/redis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ def incr(self, name, amount=1):
342342

343343
def execute(self):
344344
"""Mimic original redis function but using user custom prefix."""
345-
return self._pipe.execute()
345+
try:
346+
return self._pipe.execute()
347+
except RedisError as exc:
348+
raise_from(RedisAdapterException('Error executing pipeline operation'), exc)
346349

347350

348351
def _build_default_client(config): # pylint: disable=too-many-locals

0 commit comments

Comments
 (0)