diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2007-10-26 15:10:00 -0400 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2007-10-26 15:10:00 -0400 |
commit | 6a8b6ef5ca58c8a785098640174ab6556f3935f0 (patch) | |
tree | c254cbaaf1e1190b9ced17be5771bb8a1b7ac3bd | |
parent | 8dc285b85fb95acbcaf5beaec9c23fb5db9e25ef (diff) | |
download | func-6a8b6ef5ca58c8a785098640174ab6556f3935f0.tar.gz func-6a8b6ef5ca58c8a785098640174ab6556f3935f0.tar.xz func-6a8b6ef5ca58c8a785098640174ab6556f3935f0.zip |
catch any/all exceptions from trying to load a module,
report, and ignore
-rwxr-xr-x | func/minion/module_loader.py | 6 |
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 |