summaryrefslogtreecommitdiffstats
path: root/src/lib/Component.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-05-14 18:47:28 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-05-14 18:47:28 +0000
commit95484417f0d4db3885f89eb0f1bee27bb85a2681 (patch)
treed6f55391bf965b9a00414d2568ace21474d7879b /src/lib/Component.py
parent84ffb32d006a9d2f9d6830d3902ede1f9690d3d3 (diff)
downloadbcfg2-95484417f0d4db3885f89eb0f1bee27bb85a2681.tar.gz
bcfg2-95484417f0d4db3885f89eb0f1bee27bb85a2681.tar.bz2
bcfg2-95484417f0d4db3885f89eb0f1bee27bb85a2681.zip
Fix one more try/except/finally
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5231 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Component.py')
-rw-r--r--src/lib/Component.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py
index 0d556b059..9449d3df7 100644
--- a/src/lib/Component.py
+++ b/src/lib/Component.py
@@ -153,10 +153,11 @@ class Component (object):
self.instance_statistics.add_value('component_lock', t2-t1)
try:
mt1 = time.time()
- func()
- except:
- self.logger.error("Automatic method %s failed" \
- % (name), exc_info=1)
+ try:
+ func()
+ except:
+ self.logger.error("Automatic method %s failed" \
+ % (name), exc_info=1)
finally:
mt2 = time.time()