From 5dda20f7f03e1987033fa1a021197335617b23d3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 4 Apr 2013 10:03:21 +0300 Subject: Make sure session cache key consists of strings --- gsxws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gsxws.py') 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) -- cgit v1.2.3