1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-02-03 13:47:14 +03:00

fixed cache in case of use in middle of "lock tables"...

This commit is contained in:
Adolfo Gómez García 2018-03-08 20:29:28 +01:00
parent 8162230f23
commit f6d78201cb

View File

@ -74,6 +74,10 @@ class Cache(object):
Cache.misses += 1 Cache.misses += 1
logger.debug('key not found: {}'.format(skey)) logger.debug('key not found: {}'.format(skey))
return defValue return defValue
except Exception as e:
Cache.misses += 1
logger.debug('Cache inaccesible: {}:{}'.format(skey, e))
return defValue
def remove(self, skey): def remove(self, skey):
''' '''