summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2007-10-26 15:10:00 -0400
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2007-10-26 15:10:00 -0400
commit6a8b6ef5ca58c8a785098640174ab6556f3935f0 (patch)
treec254cbaaf1e1190b9ced17be5771bb8a1b7ac3bd /func
parent8dc285b85fb95acbcaf5beaec9c23fb5db9e25ef (diff)
downloadthird_party-func-6a8b6ef5ca58c8a785098640174ab6556f3935f0.tar.gz
third_party-func-6a8b6ef5ca58c8a785098640174ab6556f3935f0.tar.xz
third_party-func-6a8b6ef5ca58c8a785098640174ab6556f3935f0.zip
catch any/all exceptions from trying to load a module,
report, and ignore
Diffstat (limited to 'func')
-rwxr-xr-xfunc/minion/module_loader.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/func/minion/module_loader.py b/func/minion/module_loader.py
index 1339359..76eed43 100755
--- a/func/minion/module_loader.py
+++ b/func/minion/module_loader.py
@@ -90,7 +90,11 @@ def load_modules(blacklist=None):
errmsg = _("Could not load %s module: %s")
print errmsg % (mod_imp_name, e)
bad_mods[mod_imp_name] = True
-
+ continue
+ except:
+ errmsg = _("Could not load %s module")
+ print errmsg % (mod_imp_name)
+ bad_mods[mod_imp_name] = True
continue
return mods