Skip to content

Commit

Permalink
Fix PeriodicCallback' when callback function return Future' and has
Browse files Browse the repository at this point in the history
`Exception' will silence ignore
  • Loading branch information
zhicheng committed Aug 6, 2014
1 parent dbab792 commit 2d6c02a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tornado/ioloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,11 @@ def _run(self):
if not self._running:
return
try:
self.callback()
return self.callback()
except Exception:
self.io_loop.handle_callback_exception(self.callback)
self._schedule_next()
finally:
self._schedule_next()

def _schedule_next(self):
if self._running:
Expand Down

0 comments on commit 2d6c02a

Please sign in to comment.