Skip to content

Commit

Permalink
Update bot-with-card-example-flask.py
Browse files Browse the repository at this point in the history
Flask catches the CTR+C interrupt.
  • Loading branch information
cmlccie committed Apr 13, 2020
1 parent b090b40 commit c0cdea6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/bot-with-card-example-flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,6 @@ def main():
# Start the Flask web server
flask_app.run(host="0.0.0.0", port=port)

except KeyboardInterrupt:
print("You pressed Ctrl+C! Shutting down.")

finally:
print("Cleaning up webhooks...")
delete_webhooks_with_name()
Expand Down

0 comments on commit c0cdea6

Please sign in to comment.