diff options
| author | Paweł Jastrzębski <[email protected]> | 2016-08-20 08:14:39 +0200 |
|---|---|---|
| committer | Paweł Jastrzębski <[email protected]> | 2016-08-20 08:14:39 +0200 |
| commit | b09b2527d92eb9e45e30490638074e0bcf73fc5e (patch) | |
| tree | 6232750f436e5ee511f519f4d93f0a02d8c5b6e9 | |
| parent | Tweaked glob (close #205) (diff) | |
| download | kcc-b09b2527d92eb9e45e30490638074e0bcf73fc5e.tar.gz kcc-b09b2527d92eb9e45e30490638074e0bcf73fc5e.tar.bz2 kcc-b09b2527d92eb9e45e30490638074e0bcf73fc5e.zip | |
Small bugfix
Diffstat (limited to '')
| -rw-r--r-- | kcc/KCC_gui.py | 7 |
1 files 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: |