mirror of
https://github.com/wassname/cachier.git
synced 2026-09-09 11:19:08 +08:00
fixing more code issues
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
|
||||
import abc # for the _BaseCore abstract base class
|
||||
|
||||
class _BaseCore(object):
|
||||
|
||||
class _BaseCore():
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
def __init__(self, stale_after, next_time):
|
||||
|
||||
@@ -238,7 +238,7 @@ def _calls_bad_cache(res_queue, trash_cache):
|
||||
cache_file.seek(0)
|
||||
cache_file.truncate()
|
||||
res_queue.put(res)
|
||||
except Exception as exc:
|
||||
except Exception as exc: # skipcq: PYL-W0703
|
||||
res_queue.put(exc)
|
||||
|
||||
|
||||
@@ -301,7 +301,7 @@ def _calls_delete_cache(res_queue, del_cache):
|
||||
os.remove(_DEL_CACHE_FPATH)
|
||||
# print(os.path.isfile(_DEL_CACHE_FPATH))
|
||||
res_queue.put(res)
|
||||
except Exception as exc:
|
||||
except Exception as exc: # skipcq: PYL-W0703
|
||||
# print('found')
|
||||
res_queue.put(exc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user