Mercurial > libervia-backend
comparison src/memory/cache.py @ 2506:516bf5309517
plugin XEP-0054: removed Image.ANTIALIAS filter:
Image.ANTIALIAS filter is not needed anymore in Pillow: http://pillow.readthedocs.io/en/3.0.x/releasenotes/2.7.0.html#default-filter-for-thumbnails
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Mar 2018 09:04:36 +0100 |
parents | 7ad5f2c4e34a |
children | d485e9416493 |
comparison
equal
deleted
inserted
replaced
2505:8e770ac05b0c | 2506:516bf5309517 |
---|---|
68 with open(cache_url, 'rb') as f: | 68 with open(cache_url, 'rb') as f: |
69 cache_data = pickle.load(f) | 69 cache_data = pickle.load(f) |
70 except IOError: | 70 except IOError: |
71 log.warning(u"can't read cache at {}".format(cache_url)) | 71 log.warning(u"can't read cache at {}".format(cache_url)) |
72 return None | 72 return None |
73 | |
74 except pickle.UnpicklingError: | 73 except pickle.UnpicklingError: |
75 log.warning(u'invalid cache found at {}'.format(cache_url)) | 74 log.warning(u'invalid cache found at {}'.format(cache_url)) |
76 return None | 75 return None |
77 | 76 |
78 try: | 77 try: |