Skip to content

Commit 4448bc7

Browse files
committed
Remove the auto app_context wrapper
It isn't clear how to make this work in an async sense (where does the event loop start?).
1 parent 7096f11 commit 4448bc7

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/quart/cli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,6 @@ def get_command(self, ctx: click.Context, name: str) -> click.Command:
526526
click.secho(f"Error: {e.format_message()}\n", err=True, fg="red")
527527
return None
528528

529-
# Push an app context for the loaded app unless it is already
530-
# active somehow. This makes the context available to parameter
531-
# and command callbacks without needing @with_appcontext.
532-
if not current_app or current_app._get_current_object() is not app: # type: ignore
533-
ctx.with_resource(app.app_context()) # type: ignore
534-
535529
return app.cli.get_command(ctx, name) # type: ignore
536530

537531
def list_commands(self, ctx: click.Context) -> List[str]:

0 commit comments

Comments
 (0)