1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-02 11:29:33 +00:00

Don't stop conversion if KindleGen return only warnings

This commit is contained in:
Paweł Jastrzębski
2013-07-11 11:01:35 +02:00
parent 52e5919ccd
commit 3375b8c898

View File

@@ -174,7 +174,7 @@ class WorkerThread(QtCore.QThread):
retcode = call('kindlegen -verbose "' + outputPath + '"', shell=True)
except:
continue
if retcode == 0:
if retcode == 0 or retcode == 1:
self.emit(QtCore.SIGNAL("addMessage"), 'Creating MOBI file... Done!', 'info', True)
self.emit(QtCore.SIGNAL("addMessage"), 'Removing SRCS header...', 'info')
os.remove(outputPath)