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:
|
||||
import win32process
|
||||
_windows_null_file = open(os.devnull, 'wb')
|
||||
try:
|
||||
_windows_null_file = open(os.devnull, 'wb')
|
||||
except:
|
||||
raise RuntimeError('NUL %r file missing in windows'%os.devnull)
|
||||
|
||||
class Worker(object):
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user