mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More informative error message when NUL file missing on windows
This commit is contained in:
parent
6e6435913b
commit
471aac1bc7
@ -14,7 +14,10 @@ from calibre.ptempfile import PersistentTemporaryFile, base_dir
|
|||||||
|
|
||||||
if iswindows:
|
if iswindows:
|
||||||
import win32process
|
import win32process
|
||||||
|
try:
|
||||||
_windows_null_file = open(os.devnull, 'wb')
|
_windows_null_file = open(os.devnull, 'wb')
|
||||||
|
except:
|
||||||
|
raise RuntimeError('NUL %r file missing in windows'%os.devnull)
|
||||||
|
|
||||||
class Worker(object):
|
class Worker(object):
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user