diff --git a/.gitignore b/.gitignore index 4b21ebc..a391893 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,6 @@ venv/ .idea/ -.__pycache__/ +*.__pycache__/ test.py diff --git a/viking_file/__pycache__/__init__.cpython-312.pyc b/viking_file/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 8421639..0000000 Binary files a/viking_file/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/viking_file/__pycache__/api.cpython-312.pyc b/viking_file/__pycache__/api.cpython-312.pyc deleted file mode 100644 index 5ae71e0..0000000 Binary files a/viking_file/__pycache__/api.cpython-312.pyc and /dev/null differ diff --git a/viking_file/__pycache__/classes.cpython-312.pyc b/viking_file/__pycache__/classes.cpython-312.pyc deleted file mode 100644 index 0c0a95d..0000000 Binary files a/viking_file/__pycache__/classes.cpython-312.pyc and /dev/null differ diff --git a/viking_file/__pycache__/classes.cpython-313.pyc b/viking_file/__pycache__/classes.cpython-313.pyc index 29301fd..828cde5 100644 Binary files a/viking_file/__pycache__/classes.cpython-313.pyc and b/viking_file/__pycache__/classes.cpython-313.pyc differ diff --git a/viking_file/__pycache__/exceptions.cpython-312.pyc b/viking_file/__pycache__/exceptions.cpython-312.pyc deleted file mode 100644 index b2cdc81..0000000 Binary files a/viking_file/__pycache__/exceptions.cpython-312.pyc and /dev/null differ diff --git a/viking_file/clients/__pycache__/client.cpython-312.pyc b/viking_file/clients/__pycache__/client.cpython-312.pyc deleted file mode 100644 index 01b03d3..0000000 Binary files a/viking_file/clients/__pycache__/client.cpython-312.pyc and /dev/null differ diff --git a/viking_file/clients/__pycache__/client.cpython-313.pyc b/viking_file/clients/__pycache__/client.cpython-313.pyc index 16b5109..c5ef93e 100644 Binary files a/viking_file/clients/__pycache__/client.cpython-313.pyc and b/viking_file/clients/__pycache__/client.cpython-313.pyc differ diff --git a/viking_file/clients/__pycache__/client_async.cpython-312.pyc b/viking_file/clients/__pycache__/client_async.cpython-312.pyc deleted file mode 100644 index 4cd9d7c..0000000 Binary files a/viking_file/clients/__pycache__/client_async.cpython-312.pyc and /dev/null differ diff --git a/viking_file/clients/__pycache__/client_async.cpython-313.pyc b/viking_file/clients/__pycache__/client_async.cpython-313.pyc index 5da09e7..b9f9a1f 100644 Binary files a/viking_file/clients/__pycache__/client_async.cpython-313.pyc and b/viking_file/clients/__pycache__/client_async.cpython-313.pyc differ diff --git a/viking_file/clients/client_async.py b/viking_file/clients/client_async.py index 58d054d..6877544 100644 --- a/viking_file/clients/client_async.py +++ b/viking_file/clients/client_async.py @@ -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())