Skip to content

Commit

Permalink
Merge pull request #96 from mattbriancon/patch-1
Browse files Browse the repository at this point in the history
Stop using Exception.message
  • Loading branch information
eli-darkly authored Sep 4, 2018
2 parents 5e81bca + e0e713a commit fc80a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldclient/redis_feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def all(self, kind, callback):
all_items = r.hgetall(self._items_key(kind))
except BaseException as e:
log.error("RedisFeatureStore: Could not retrieve '%s' from Redis with error: %s. Returning None.",
kind.namespace, e.message)
kind.namespace, e)
return callback(None)

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

if item_json is None or item_json is "":
Expand Down

0 comments on commit fc80a43

Please sign in to comment.