Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] no clean way to exit application in post_init #4156

Open
Poolitzer opened this issue Mar 12, 2024 · 0 comments · May be fixed by #4157
Open

[Bug] no clean way to exit application in post_init #4156

Poolitzer opened this issue Mar 12, 2024 · 0 comments · May be fixed by #4157
Labels

Comments

@Poolitzer
Copy link
Member

We have four ways to exit application, none of them work without an error. We should fix at least one and document which works:

  • app.stop() returns the error that the application is not running,
  • app.shutdown() gives "This Updater was not initialized",
  • app.stop_running() returns because the application is not running,
  • sys.exit gives "coroutine 'Updater.start_polling' was never awaited."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants