summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-04-25 20:56:45 -0400
committerLuke Macken <lmacken@redhat.com>2011-04-25 21:03:58 -0400
commitf8a14ccd8d838c64c221c20384d9863d8d811450 (patch)
treeb8907fe845ceaa3955d262571b6bb33cf3d00e1f
parent747cabcee9dd5a6666fa376bd2092dbe12452915 (diff)
Remove our second logging handler when errors occur (ticket #637)
-rwxr-xr-xliveusb/gui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 73ebceb..3f0f15d 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -184,6 +184,7 @@ class LiveUSBThread(QtCore.QThread):
if not self.live.drive['uuid'] and not self.live.label:
self.status(_("Error: Cannot set the label or obtain "
"the UUID of your device. Unable to continue."))
+ self.live.log.removeHandler(handler)
return
self.live.check_free_space()
@@ -191,12 +192,14 @@ class LiveUSBThread(QtCore.QThread):
if not self.parent.opts.noverify:
# Verify the MD5 checksum inside of the ISO image
if not self.live.verify_iso_md5():
+ self.live.log.removeHandler(handler)
return
# If we know about this ISO, and it's SHA1 -- verify it
release = self.live.get_release_from_iso()
if release and ('sha1' in release or 'sha256' in release):
if not self.live.verify_iso_sha1(progress=self):
+ self.live.log.removeHandler(handler)
return
# Setup the progress bar