diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-05-21 14:30:19 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-05-21 14:30:19 +0000 |
commit | 1eec58d154c7416c3e0e820b7630229ec712e278 (patch) | |
tree | 050df5b4c6a9a1948a2070c6013f8e061298fdda | |
parent | d7c87a564f50af1e5e255fd2421ac78f560d7cd5 (diff) | |
download | anaconda-1eec58d154c7416c3e0e820b7630229ec712e278.tar.gz anaconda-1eec58d154c7416c3e0e820b7630229ec712e278.tar.xz anaconda-1eec58d154c7416c3e0e820b7630229ec712e278.zip |
2007-05-21 Jeremy Katz <katzj@redhat.com>f7-base
* lvm.py: Still log real errors instead of hiding in lvmError
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lvm.py | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2007-05-21 Jeremy Katz <katzj@redhat.com> + + * lvm.py: Still log real errors instead of hiding in lvmError + 2006-05-21 Jeremy Katz <katzj@redhat.com> * anaconda.spec: Bump version. @@ -59,7 +59,8 @@ def lvmExec(*args): try: return iutil.execWithRedirect("lvm", args, stdout = output, stderr = output, searchPath = 1) - except: + except Exception, e: + log.error("error running lvm command: %s" %(e,)) raise LvmError, args[0] def lvmCapture(*args): @@ -69,7 +70,8 @@ def lvmCapture(*args): for line in lvmout.split("\n"): lines.append(line.strip().split(':')) return lines - except: + except Exception, e: + log.error("error running lvm command: %s" %(e,)) raise LvmError, args[0] def vgscan(): |