Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):