Do not catch exceptions from the called method

This commit is contained in:
Marco Pesenti Gritti 2006-10-30 17:05:01 +01:00
parent 72832e0174
commit 3e4f570d16

View File

@ -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):