Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-30 16:05:01 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-30 16:05:01 (GMT)
commit3e4f570d16cdb74472f42a7b6b2fe87865106ae5 (patch)
tree8d1b961a6db7591b016d1906c61c8f16ad3d9861 /sugar/graphics
parent72832e01743c9676442e2a46cfa79dbc56aba3a7 (diff)
Do not catch exceptions from the called method
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/timeline.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sugar/graphics/timeline.py b/sugar/graphics/timeline.py
index 77d2428..5c40ca5 100644
--- a/sugar/graphics/timeline.py
+++ b/sugar/graphics/timeline.py
@@ -30,9 +30,11 @@ class TimelineObserver:
def next_frame(self, tag, current_frame, n_frames):
try:
method = getattr(self._observer, 'do_' + tag)
- method(current_frame, n_frames)
except AttributeError:
- pass
+ method = None
+
+ if method:
+ method(current_frame, n_frames)
class Timeline:
def __init__(self, observer):