onfido-python 2.10.0__tar.gz → 2.10.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {onfido_python-2.10.0 → onfido_python-2.10.1}/PKG-INFO +1 -1
  2. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/aio_resource.py +4 -5
  3. {onfido_python-2.10.0 → onfido_python-2.10.1}/pyproject.toml +1 -1
  4. {onfido_python-2.10.0 → onfido_python-2.10.1}/LICENSE +0 -0
  5. {onfido_python-2.10.0 → onfido_python-2.10.1}/README.md +0 -0
  6. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/__init__.py +0 -0
  7. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/exceptions.py +0 -0
  8. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/mimetype.py +0 -0
  9. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/onfido.py +0 -0
  10. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/onfido_download.py +0 -0
  11. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/regions.py +0 -0
  12. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resource.py +0 -0
  13. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/address_picker.py +0 -0
  14. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/applicants.py +0 -0
  15. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/checks.py +0 -0
  16. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/documents.py +0 -0
  17. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/extraction.py +0 -0
  18. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/live_photos.py +0 -0
  19. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/live_videos.py +0 -0
  20. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/motion_captures.py +0 -0
  21. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/reports.py +0 -0
  22. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/sdk_tokens.py +0 -0
  23. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/watchlist_monitors.py +0 -0
  24. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/webhooks.py +0 -0
  25. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources/workflow_runs.py +0 -0
  26. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/address_picker.py +0 -0
  27. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/applicants.py +0 -0
  28. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/checks.py +0 -0
  29. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/documents.py +0 -0
  30. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/extraction.py +0 -0
  31. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/live_photos.py +0 -0
  32. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/live_videos.py +0 -0
  33. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/motion_captures.py +0 -0
  34. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/reports.py +0 -0
  35. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/sdk_tokens.py +0 -0
  36. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/watchlist_monitors.py +0 -0
  37. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/webhooks.py +0 -0
  38. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/resources_aio/workflow_runs.py +0 -0
  39. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/utils.py +0 -0
  40. {onfido_python-2.10.0 → onfido_python-2.10.1}/onfido/webhook_event_verifier.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: onfido-python
3
- Version: 2.10.0
3
+ Version: 2.10.1
4
4
  Summary: The official wrapper for the Onfido API
5
5
  Home-page: https://github.com/onfido/onfido-python
6
6
  License: MIT
@@ -39,11 +39,10 @@ class Resource:
39
39
  async def _handle_response(self, response: ClientResponse):
40
40
  if response.status == 422:
41
41
  error = None
42
- if response.code == 422:
43
- content_type = response.headers.get("Content-Type", "")
44
- if "application/json" in content_type:
45
- resp_json = await response.json()
46
- error = resp_json.get("error")
42
+ content_type = response.headers.get("Content-Type", "")
43
+ if "application/json" in content_type:
44
+ resp_json = await response.json()
45
+ error = resp_json.get("error")
47
46
  raise OnfidoRequestError(error)
48
47
 
49
48
  response.raise_for_status()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "onfido-python"
3
- version = "2.10.0"
3
+ version = "2.10.1"
4
4
  description = "The official wrapper for the Onfido API"
5
5
  homepage = "https://github.com/onfido/onfido-python"
6
6
  readme = "README.md"
File without changes
File without changes