aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgsxws.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index 16734af..b0ec1e3 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -928,7 +928,8 @@ def connect(
LOCALE = LOCALE
md5 = hashlib.md5()
- cache_key = md5.update(user_id + str(sold_to)).hexdigest()
+ md5.update(user_id + str(sold_to))
+ cache_key = md5.hexdigest()
if CACHE.get(cache_key) is not None:
SESSION = CACHE.get(cache_key)