From e0e713a2b2e9a8a8238f9d3224884951e5dcdeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=20Brian=C3=A7on?= Date: Tue, 4 Sep 2018 15:08:24 -0400 Subject: [PATCH] Stop using Exception.message `Exception.message` has been deprecated since Python 2.6 in favor of leveraging `Exception.__str__()` or `Exception.args`. --- ldclient/redis_feature_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldclient/redis_feature_store.py b/ldclient/redis_feature_store.py index 7c7094f9..b016a1eb 100644 --- a/ldclient/redis_feature_store.py +++ b/ldclient/redis_feature_store.py @@ -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 "": @@ -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 "":