mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Handle case where cache file does not exist.
This commit is contained in:
parent
5572db6fde
commit
e599f82f1e
@ -730,6 +730,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
||||
'_metadata_cache.json')
|
||||
self.known_uuids = defaultdict(dict)
|
||||
self.known_metadata = {}
|
||||
if os.path.exists(cache_file_name):
|
||||
with open(cache_file_name, mode='rb') as fd:
|
||||
try:
|
||||
while True:
|
||||
|
Loading…
x
Reference in New Issue
Block a user