Fix typo causing double open of cover files when reading covers from the library

This commit is contained in:
Kovid Goyal 2015-04-30 09:10:33 +05:30
parent 5b1d5c5a81
commit 902aeaaa21

View File

@ -1304,11 +1304,11 @@ class DB(object):
f = lopen(path, 'rb')
except (IOError, OSError):
time.sleep(0.2)
try:
f = lopen(path, 'rb')
except (IOError, OSError) as e:
# Ensure the path that caused this error is reported
raise Exception('Failed to open %r with error: %s' % (path, e))
try:
f = lopen(path, 'rb')
except (IOError, OSError) as e:
# Ensure the path that caused this error is reported
raise Exception('Failed to open %r with error: %s' % (path, e))
with f:
if hasattr(dest, 'write'):