From b09b2527d92eb9e45e30490638074e0bcf73fc5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sat, 20 Aug 2016 08:14:39 +0200 Subject: [PATCH] Small bugfix --- kcc/KCC_gui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 9445088..342b0da 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -328,9 +328,10 @@ class WorkerThread(QtCore.QThread): 'for more details.', 'error', False) MW.addTrayMessage.emit('Error during conversion!', 'Critical') if not self.conversionAlive: - for item in outputPath: - if os.path.exists(item): - os.remove(item) + if 'outputPath' in locals(): + for item in outputPath: + if os.path.exists(item): + os.remove(item) self.clean() return if not self.errors: