diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-12-02 01:33:14 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-12-02 01:33:14 +0000 |
commit | 54da813bc88a19e7227e30b4160de6aa6ccb7d7b (patch) | |
tree | 4fbde440258573dadd1efa725e6888d0d685e1a1 /src/lib/Client/Frame.py | |
parent | ab6ac030488c8c1cc8cd9c537f5e468b3d0e2678 (diff) | |
download | bcfg2-54da813bc88a19e7227e30b4160de6aa6ccb7d7b.tar.gz bcfg2-54da813bc88a19e7227e30b4160de6aa6ccb7d7b.tar.bz2 bcfg2-54da813bc88a19e7227e30b4160de6aa6ccb7d7b.zip |
Harden frame against tool driver syntax errors (Related to #507) [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4020 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r-- | src/lib/Client/Frame.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index b19594402..b341d65fd 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -61,10 +61,15 @@ class Frame: for tool in tools: tool_class = "Bcfg2.Client.Tools.%s" % tool try: - tclass[tool] = getattr(__import__(tool_class, globals(), locals(), ['*']), + tclass[tool] = getattr(__import__(tool_class, globals(), + locals(), ['*']), tool) except ImportError: continue + except: + self.logger.error("Tool %s unexpectedly failed to load" % tool, + exc_info=1) + for tool in tclass.values(): try: |