gen3authz 2.3.1__tar.gz → 2.3.2__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.
@@ -1,8 +1,10 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: gen3authz
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Gen3 authz client
5
5
  License: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
6
8
  Author: CTDS UChicago
7
9
  Author-email: cdis@uchicago.edu
8
10
  Requires-Python: >=3.6,<4.0
@@ -16,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.10
16
18
  Classifier: Programming Language :: Python :: 3.11
17
19
  Classifier: Programming Language :: Python :: 3.12
18
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
19
22
  Requires-Dist: backoff (>=1.6,<2.0)
20
23
  Requires-Dist: cdiserrors (<2.0.0)
21
24
  Requires-Dist: contextvars (>=2.4,<3.0) ; python_version < "3.7"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "gen3authz"
3
- version = "2.3.1"
3
+ version = "2.3.2"
4
4
  description = "Gen3 authz client"
5
5
  authors = ["CTDS UChicago <cdis@uchicago.edu>"]
6
6
  license = "Apache-2.0"
@@ -225,7 +225,12 @@ class BaseArboristClient(AuthzClient):
225
225
  )()
226
226
  if inspect.isawaitable(res):
227
227
  res = await res
228
- rv = await client.request(method, url, **kwargs)
228
+ try:
229
+ rv = await client.request(method, url, **kwargs)
230
+ except httpx.TimeoutException as e:
231
+ raise ArboristTimeoutError(
232
+ "Request to arborist timed out"
233
+ ) from e
229
234
  else:
230
235
  raise ArboristTimeoutError("Request to arborist timed out") from e
231
236
  return ArboristResponse(rv, expect_json=expect_json)
File without changes
File without changes