From 6a8b6ef5ca58c8a785098640174ab6556f3935f0 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 26 Oct 2007 15:10:00 -0400 Subject: catch any/all exceptions from trying to load a module, report, and ignore --- func/minion/module_loader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'func') 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 -- cgit