Fixes #1238887 [Smart Device Control failes with Errno 2 No such file or directory:  <path>\\AppData\\Local\\calibre-cache\\device_drivers_SMART_DEVICE_APP_metadata_cache.json'](https://bugs.launchpad.net/calibre/+bug/1238887)
This commit is contained in:
Kovid Goyal 2013-10-11 23:21:15 +05:30
commit 424b9e1884

View File

@ -730,6 +730,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
'_metadata_cache.json') '_metadata_cache.json')
self.known_uuids = defaultdict(dict) self.known_uuids = defaultdict(dict)
self.known_metadata = {} self.known_metadata = {}
if os.path.exists(cache_file_name):
with open(cache_file_name, mode='rb') as fd: with open(cache_file_name, mode='rb') as fd:
try: try:
while True: while True: