From 877a859ef40908f2278c7979c65b6ec692c5b801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 13 Aug 2013 09:33:46 +0200 Subject: [PATCH] Fixed abort bug --- kcc/KCC_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 5584a06..761cc6d 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -186,7 +186,8 @@ class WorkerThread(QtCore.QThread): self.emit(QtCore.SIGNAL("addMessage"), 'KCC failed to create EPUB!', 'error') if not self.conversionAlive: for item in outputPath: - os.remove(item) + if os.path.exists(item): + os.remove(item) self.clean() return if not self.errors: