summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-03-07 16:33:32 +0000
committerJeremy Katz <katzj@redhat.com>2007-03-07 16:33:32 +0000
commit8d6d690fd2a12e233858befeaf5b0adaf1e31339 (patch)
tree9bf6a0824c7fe888cf8e84edf1b324593be759c8 /installclass.py
parent820113e9146ce3208b72f7bbdb336df6ea17c48c (diff)
downloadanaconda-8d6d690fd2a12e233858befeaf5b0adaf1e31339.tar.gz
anaconda-8d6d690fd2a12e233858befeaf5b0adaf1e31339.tar.xz
anaconda-8d6d690fd2a12e233858befeaf5b0adaf1e31339.zip
2007-03-07 Jeremy Katz <katzj@redhat.com>
* backend.py (AnacondaBackend.initLog): Don't open the install log twice (Elliot Peele) * installclass.py (availableClasses): Log a warning when there's an error loading an installclass; raise it in debug mode (Elliot Peele) * exception.py: rpm import not used (Elliot Peele)
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index d10ba3640..00846732f 100644
--- a/installclass.py
+++ b/installclass.py
@@ -527,7 +527,9 @@ def availableClasses(showHidden=0):
if obj.hidden == 0 or showHidden == 1:
list.append(((obj.name, obj, obj.pixmap), sortOrder))
except:
- pass
+ log.warning ("module import of %s failed: %s" % (mainName, sys.exc_type))
+ if flags.debug: raise
+ else: continue
list.sort(ordering)
for (item, priority) in list: