mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
another resource warning
This commit is contained in:
parent
ffb77face1
commit
b8ec9c5809
@ -89,7 +89,8 @@ class Check(Command):
|
|||||||
self.wn_path = os.path.expanduser('~/work/srv/main/static')
|
self.wn_path = os.path.expanduser('~/work/srv/main/static')
|
||||||
self.has_changelog_check = os.path.exists(self.wn_path)
|
self.has_changelog_check = os.path.exists(self.wn_path)
|
||||||
try:
|
try:
|
||||||
cache = json.load(open(self.cache_file, 'rb'))
|
with open(self.cache_file, 'rb') as f:
|
||||||
|
cache = json.load(f)
|
||||||
except EnvironmentError as err:
|
except EnvironmentError as err:
|
||||||
if err.errno != errno.ENOENT:
|
if err.errno != errno.ENOENT:
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user