From: erickson Date: Thu, 27 Dec 2007 19:37:55 +0000 (+0000) Subject: forcing int-ness on timeout value X-Git-Tag: osrf_rel_2_0_1~782 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5783024a920f33fad0c0c7d78e7524aec1b9bb21;p=OpenSRF.git forcing int-ness on timeout value git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1185 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/python/osrf/cache.py b/src/python/osrf/cache.py index 00fb831..a62f3e5 100644 --- a/src/python/osrf/cache.py +++ b/src/python/osrf/cache.py @@ -37,6 +37,7 @@ class CacheClient(object): global defaultTimeout if timeout is None: timeout = defaultTimeout + timeout = int(timeout) json = to_json(val) osrf.log.log_internal("cache: %s => %s" % (str(key), json)) return self.client.set(str(key), json, timeout)