mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Windows: HTML Input: Fix error when trying to add HTML files with links to other files that are invalid pathnames. Fixes #2027763 [Convert HTML page to EPUB is no longer possible](https://bugs.launchpad.net/calibre/+bug/2027763)
This commit is contained in:
parent
29d9e7a316
commit
e5222ccdde
@ -630,6 +630,10 @@ if iswindows:
|
||||
return get_long_path_name(lpath)
|
||||
except FileNotFoundError:
|
||||
return path
|
||||
except OSError as e:
|
||||
if e.winerror == 123: # ERR_INVALID_NAME
|
||||
return path
|
||||
raise
|
||||
|
||||
else:
|
||||
def make_long_path_useable(path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user