mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-03 16:46:00 +01:00
...
This commit is contained in:
parent
8d0689eda1
commit
bc8753c7b5
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
import os, errno, time
|
||||
from math import ceil
|
||||
|
||||
from calibre import sanitize_file_name, isbytestring, force_unicode
|
||||
from calibre import sanitize_file_name, isbytestring, force_unicode, prints
|
||||
from calibre.constants import (preferred_encoding, iswindows,
|
||||
filesystem_encoding)
|
||||
from calibre.utils.localization import get_udc
|
||||
|
|
@ -368,9 +368,11 @@ def __init__(self, path):
|
|||
_('File is open in another process'))
|
||||
err.filename = f
|
||||
raise err
|
||||
prints('CreateFile failed for: %r' % f)
|
||||
raise
|
||||
except:
|
||||
self.close_handles()
|
||||
prints('CreateFile failed for: %r' % f)
|
||||
raise
|
||||
self.handle_map[f] = h
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue