Skip to content

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

@Poolitzer

Description

@Poolitzer

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions