summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()