onfido-python 2.10.0__py3-none-any.whl → 2.10.1__py3-none-any.whl

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.
onfido/aio_resource.py CHANGED
@@ -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
  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
@@ -1,5 +1,5 @@
1
1
  onfido/__init__.py,sha256=4nFD3WP9Z5BsM3b5DKCvmC6MbXV-Ur9I4QCfeUJi1g0,53
2
- onfido/aio_resource.py,sha256=-MiqsJ-oeVAy9rGEESu8yLkV9_2eo7ryHwkxwaC92YY,4672
2
+ onfido/aio_resource.py,sha256=Jw4rhfeMnX-GoUBsx7mEGzj6H4Bbr6pSyPs9PzQlcL4,4619
3
3
  onfido/exceptions.py,sha256=uZc8ru5_imXJ5ub6JhH7TMqZHftRxUG28XHVA-VlHJY,2131
4
4
  onfido/mimetype.py,sha256=ur3ruKmSAdSAR56fPsf1sc6dPVGYpS6XaovtCo4G79U,120
5
5
  onfido/onfido.py,sha256=wV2FZaU5xq_IoBG6U5Y3FezfWX_i-KjcOgZ8NTkafnQ,4342
@@ -34,7 +34,7 @@ onfido/resources_aio/webhooks.py,sha256=hrYvFBrweN79B06TtVvG87PzpXV3bwsRpHmx3KCW
34
34
  onfido/resources_aio/workflow_runs.py,sha256=sZ5yyMvBXYRmWYL50_41R1M5g_T-Xm0GkKu1yrm4Ci0,600
35
35
  onfido/utils.py,sha256=n-Z2D4GGgr2UmOpTFCKsIdgL9QaNMUuzVmGx7ZI8j4U,708
36
36
  onfido/webhook_event_verifier.py,sha256=YgN5P_Jw7N7WIi0lSZwB1dlaRTsge9-CyYF4YA1pQtA,771
37
- onfido_python-2.10.0.dist-info/LICENSE,sha256=xFvlQb3_cMWstMRPgUCbYrHPv1AmTUC8_lnmTLKJfa0,1073
38
- onfido_python-2.10.0.dist-info/METADATA,sha256=4fLxHakDKJZJ6quaIES2G7m-t78FEWYwBY7foHNS7qo,5774
39
- onfido_python-2.10.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
40
- onfido_python-2.10.0.dist-info/RECORD,,
37
+ onfido_python-2.10.1.dist-info/LICENSE,sha256=xFvlQb3_cMWstMRPgUCbYrHPv1AmTUC8_lnmTLKJfa0,1073
38
+ onfido_python-2.10.1.dist-info/METADATA,sha256=NCT9G2Dl65dgemoWqgfplbg2oOyHIIyGYbqWDvYYiz4,5774
39
+ onfido_python-2.10.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
40
+ onfido_python-2.10.1.dist-info/RECORD,,