mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 02:46:03 +01:00
another resource warning
This commit is contained in:
parent
ffb77face1
commit
b8ec9c5809
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ def run(self, opts):
|
|||
self.wn_path = os.path.expanduser('~/work/srv/main/static')
|
||||
self.has_changelog_check = os.path.exists(self.wn_path)
|
||||
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:
|
||||
if err.errno != errno.ENOENT:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Reference in a new issue