Skip to content

Commit bd216bb

Browse files
committed
segment_contains compliance
1 parent 5292c94 commit bd216bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

splitio/storage/pluggable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def segment_contains(self, segment_name, key):
503503
except Exception:
504504
_LOGGER.error('Error checking segment key')
505505
_LOGGER.debug('Error: ', exc_info=True)
506-
return None
506+
return False
507507

508508
def get_segment_keys_count(self):
509509
"""

splitio/storage/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def segment_contains(self, segment_name, key):
392392
except RedisAdapterException:
393393
_LOGGER.error('Error testing members in segment stored in redis')
394394
_LOGGER.debug('Error: ', exc_info=True)
395-
return None
395+
return False
396396

397397
def get_segments_count(self):
398398
"""

0 commit comments

Comments
 (0)