(self, token: Token, call)
| 115 | return True |
| 116 | |
| 117 | async def _flow_call_for_token(self, token: Token, call): |
| 118 | previous_fingerprint = self.flow_client.get_request_fingerprint() |
| 119 | proxy_url = (getattr(token, "proxy_url", "") or "").strip() |
| 120 | if proxy_url: |
| 121 | next_fingerprint = dict(previous_fingerprint or {}) |
| 122 | next_fingerprint["proxy_url"] = proxy_url |
| 123 | self.flow_client._set_request_fingerprint(next_fingerprint) |
| 124 | try: |
| 125 | return await call() |
| 126 | finally: |
| 127 | self.flow_client._set_request_fingerprint(previous_fingerprint) |
| 128 | |
| 129 | async def _st_to_at_for_token(self, token: Token, st: str) -> Dict[str, Any]: |
| 130 | return await self._flow_call_for_token(token, lambda: self.flow_client.st_to_at(st)) |
no test coverage detected