summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-12-02 01:33:14 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-12-02 01:33:14 +0000
commit54da813bc88a19e7227e30b4160de6aa6ccb7d7b (patch)
tree4fbde440258573dadd1efa725e6888d0d685e1a1 /src/lib/Client/Frame.py
parentab6ac030488c8c1cc8cd9c537f5e468b3d0e2678 (diff)
downloadbcfg2-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.py7
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: