mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-01 20:44:01 +01:00
More informative error message when NUL file missing on windows
This commit is contained in:
parent
6e6435913b
commit
471aac1bc7
1 changed files with 4 additions and 1 deletions
|
|
@ -14,7 +14,10 @@
|
|||
|
||||
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…
Reference in a new issue