mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[Enhancement] Skip non-existing files to avoid error. This is for better error handling.
This commit is contained in:
parent
57cd538894
commit
f53a5d33ec
@ -74,7 +74,8 @@ class SNBInput(InputFormatPlugin):
|
||||
chapterSrc = ch.get('src')
|
||||
fname = 'ch_%d.htm' % i
|
||||
data = snbFile.GetFileStream('snbc/' + chapterSrc)
|
||||
if data != None:
|
||||
if data == None:
|
||||
continue
|
||||
snbc = etree.fromstring(data)
|
||||
outputFile = open(os.path.join(tdir, fname), 'wb')
|
||||
lines = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user