mirror of
https://github.com/arabianq/viking-file-python.git
synced 2026-04-27 22:21:21 +00:00
first commit
This commit is contained in:
+1
-1
@@ -3,6 +3,6 @@ venv/
|
||||
|
||||
.idea/
|
||||
|
||||
.__pycache__/
|
||||
*.__pycache__/
|
||||
|
||||
test.py
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -149,7 +149,7 @@ class AsyncVikingClient:
|
||||
api_response_json = await self._get_response_json(api_response)
|
||||
|
||||
max_pages = api_response_json.get("maxPages")
|
||||
if max_pages:
|
||||
if isinstance(max_pages, int):
|
||||
return max_pages
|
||||
else:
|
||||
raise ApiException(await api_response.text())
|
||||
|
||||
Reference in New Issue
Block a user