aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-04 10:03:21 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-04 10:03:21 +0300
commit5dda20f7f03e1987033fa1a021197335617b23d3 (patch)
treef20ebf36e4b043767297ec131ede8d76f5d012e3 /gsxws.py
parentae3069ee23473b5cc3573b5ab90fa4b026805c70 (diff)
downloadpy-gsxws-5dda20f7f03e1987033fa1a021197335617b23d3.tar.gz
py-gsxws-5dda20f7f03e1987033fa1a021197335617b23d3.tar.bz2
py-gsxws-5dda20f7f03e1987033fa1a021197335617b23d3.zip
Make sure session cache key consists of strings
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index fcbb2b7..5f9d3ee 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -928,7 +928,7 @@ def connect(
SESSION = {}
LOCALE = LOCALE
- cache_key = md5.new(user_id + sold_to).hexdigest()
+ cache_key = md5.new(user_id + str(sold_to)).hexdigest()
if CACHE.get(cache_key) is not None:
SESSION = CACHE.get(cache_key)