Skip to content

Commit

Permalink
Stop using Exception.message
Browse files Browse the repository at this point in the history
`Exception.message` has been deprecated since Python 2.6 in favor of leveraging `Exception.__str__()` or `Exception.args`.
  • Loading branch information
mattbriancon authored Sep 4, 2018
1 parent 5e81bca commit e0e713a
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 e0e713a

Please sign in to comment.