From 3375b8c898a79cb1a6808bdcc05ec5c9aa2eaa59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 11 Jul 2013 11:01:35 +0200 Subject: [PATCH] Don't stop conversion if KindleGen return only warnings --- kcc/KCC_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)