elif isinstance(response, aiohttp.ClientResponse):
meta = (await response.json()).get("meta", {})
else:
- raise NotImplementedError(
- f"Unknown {type(response)} return type for {self.method}"
+ raise RuntimeError(
+ f"Unknown {type(response)} return type for "
+ f"{self.method.__qualname__}"
)
self.previous_token = meta.get("previous_token")
elif isinstance(response, requests.Response):
meta = response.json().get("meta", {})
else:
- raise NotImplementedError(
- f"Unknown {type(response)} return type for {self.method}"
+ raise RuntimeError(
+ f"Unknown {type(response)} return type for "
+ f"{self.method.__qualname__}"
)
self.previous_token = meta.get("previous_token")