diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index ddb987c..674aa53 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -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)