Skip to content

Commit bf54e84

Browse files
committed
fix missing split possible exception;
1 parent cdb9387 commit bf54e84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

splitio/storage/redis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ def get_all_splits(self):
166166
for raw in raw_splits:
167167
try:
168168
to_return.append(splits.from_raw(json.loads(raw)))
169-
except ValueError:
169+
except (ValueError, TypeError):
170170
self._logger.error('Could not parse split. Skipping')
171+
self._logger.debug("Raw split that failed parsing attempt: %s", raw)
171172
except RedisAdapterException:
172173
self._logger.error('Error fetching all splits from storage')
173174
self._logger.debug('Error: ', exc_info=True)

0 commit comments

Comments
 (0)