(self, *arg, **kwargs)
| 31 | @staticmethod |
| 32 | def error_wrapper(method): |
| 33 | async def wrapper(self, *arg, **kwargs): |
| 34 | try: |
| 35 | return await method(self, *arg, **kwargs) |
| 36 | except NeedRefreshTokenError: |
| 37 | await self.refresh_tokens() |
| 38 | return await method(self, *arg, **kwargs) |
| 39 | except NeedReLoginError: |
| 40 | raise NeedReLoginError |
| 41 | except Exception as e: |
| 42 | self._log.error(f"Error on BlumApi.{method.__name__} | {type(e).__name__}: {e}") |
| 43 | return wrapper |
| 44 | |
| 45 | async def get(self, url: str): |
nothing calls this directly
no test coverage detected