From 8d6d690fd2a12e233858befeaf5b0adaf1e31339 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 7 Mar 2007 16:33:32 +0000 Subject: 2007-03-07 Jeremy Katz * 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) --- installclass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'installclass.py') 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: -- cgit