Skip to content

Commit

Permalink
rougeth#179: Added a note about Bottery.stop inside the exception han…
Browse files Browse the repository at this point in the history
…dler.
  • Loading branch information
ivkalita committed Oct 23, 2018
1 parent 4e28e42 commit 2bead2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bottery/bottery.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def configure_server(self, port):
def exception_handler(self, loop, context):
click.echo(context.get('exception'))
loop.default_exception_handler(context)
# We don't use Bottery.stop() here because the current implementation
# won't stop the running loop.
loop.stop()

def configure(self):
Expand Down

0 comments on commit 2bead2c

Please sign in to comment.