ignore closing file error when file not open

fixes #16268
pull/16275/head
Brian Coca 9 years ago
parent 2d042d73b0
commit 07846f7bec

@ -101,7 +101,10 @@ class CacheModule(BaseCacheModule):
else:
f.write(jsonify(value))
finally:
try:
f.close()
except UnboundLocalError:
pass
def has_expired(self, key):

Loading…
Cancel
Save