(self, token: Token)
| 100 | await self.auto_pop(exc_value) |
| 101 | |
| 102 | async def _push_appctx(self, token: Token) -> None: |
| 103 | app_ctx = _cv_app.get(None) |
| 104 | if app_ctx is None or app_ctx.app is not self.app: |
| 105 | app_ctx = self.app.app_context() |
| 106 | await app_ctx.push() |
| 107 | else: |
| 108 | app_ctx = None |
| 109 | |
| 110 | self._cv_tokens.append((token, app_ctx)) |
| 111 | |
| 112 | async def _push(self) -> None: |
| 113 | if self.session is None: |