Skip to content

Commit fc80a43

Browse files
authored
Merge pull request #96 from mattbriancon/patch-1
Stop using Exception.message
2 parents 5e81bca + e0e713a commit fc80a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ldclient/redis_feature_store.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def all(self, kind, callback):
6464
all_items = r.hgetall(self._items_key(kind))
6565
except BaseException as e:
6666
log.error("RedisFeatureStore: Could not retrieve '%s' from Redis with error: %s. Returning None.",
67-
kind.namespace, e.message)
67+
kind.namespace, e)
6868
return callback(None)
6969

7070
if all_items is None or all_items is "":
@@ -100,7 +100,7 @@ def _get_even_if_deleted(self, kind, key, check_cache = True):
100100
item_json = r.hget(self._items_key(kind), key)
101101
except BaseException as e:
102102
log.error("RedisFeatureStore: Could not retrieve key %s from '%s' with error: %s",
103-
key, kind.namespace, e.message)
103+
key, kind.namespace, e)
104104
return None
105105

106106
if item_json is None or item_json is "":

0 commit comments

Comments
 (0)