konecty_sdk_python 2.1.4__py3-none-any.whl → 2.1.5__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.
@@ -74,8 +74,13 @@ async def request(
74
74
 
75
75
  if stream:
76
76
  session = aiohttp.ClientSession()
77
- response = await session.request(method, url, **kwargs)
78
- response.raise_for_status()
77
+ # Until StreamResponse owns the session, a failure here must close it or it leaks.
78
+ try:
79
+ response = await session.request(method, url, **kwargs)
80
+ response.raise_for_status()
81
+ except BaseException:
82
+ await session.close()
83
+ raise
79
84
  return StreamResponse(session, response)
80
85
 
81
86
  async with aiohttp.ClientSession() as session:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: konecty_sdk_python
3
- Version: 2.1.4
3
+ Version: 2.1.5
4
4
  Summary: Konecty SDK Python
5
5
  Author-email: Leonardo Leal <leonardo.leal@konecty.com>, Derotino Silveira <derotino.silveira@konecty.com>
6
6
  License: MIT
@@ -8,7 +8,7 @@ KonectySdkPython/lib/client.py,sha256=55di-db_5zUwdPVuIseILcWFrv__9VqMUM5Ulg9U9I
8
8
  KonectySdkPython/lib/exceptions.py,sha256=WkXRm0ZzKZdOdrHmgGxB_T_yvLH6agsHTsph3bTA0Vs,3251
9
9
  KonectySdkPython/lib/file_manager.py,sha256=CLpOJWdA1tb2iq0qOIeRyEEIuACRq9tIo7Rls1YT2ig,9986
10
10
  KonectySdkPython/lib/filters.py,sha256=PsFaUFCEyKgxgzD566LdTLvuMJevoF_i9U1WnpJZzPQ,4482
11
- KonectySdkPython/lib/http.py,sha256=atwyuKSFniulvAspi_VhinUhtPJGNyZYkIkaEgqfIqo,3377
11
+ KonectySdkPython/lib/http.py,sha256=lHb1GFN9OBGgZcC9TkP57S-KqnmeHbOzizq72OvChgk,3571
12
12
  KonectySdkPython/lib/model.py,sha256=8ok1VzPGpXQklz2fJwjP8HT0aKOzhtE93BzcgfVw4zY,2846
13
13
  KonectySdkPython/lib/serialization.py,sha256=HxA2t7uPv-4aqkGHMUF8WgP1RcTg6RXsFmr-nUhtx7E,401
14
14
  KonectySdkPython/lib/settings.py,sha256=Xbv-KTVM-oxvj-hJQFv2-vbsv4R5aV4D3XWOSdpw6as,5245
@@ -31,7 +31,7 @@ KonectySdkPython/lib/services/pat.py,sha256=yelMEubMX4G5aB5-4h-QAYjeQrqJp48AsapM
31
31
  KonectySdkPython/lib/services/query.py,sha256=vCqbf0QdV8Blh8Hfsvq6Ne1-YFuC5siw1gVa7ZBGs_k,6605
32
32
  KonectySdkPython/lib/services/stream.py,sha256=1DMVxcg9Ymk2NgX0Qfvpjrr6vZJo5iFovPFT1NA3_CY,4737
33
33
  KonectySdkPython/lib/services/subscriptions.py,sha256=_Jq8jW7YkL_hwLNte1bWgrr4D2EMZUUSOXUgnRoGGK4,1022
34
- konecty_sdk_python-2.1.4.dist-info/METADATA,sha256=b_dxxgMQsJVnVkGm9sXAkjc5qCvPJTAV3abh069hXDg,5442
35
- konecty_sdk_python-2.1.4.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
36
- konecty_sdk_python-2.1.4.dist-info/entry_points.txt,sha256=awf962DamFgy791G3PsJ354edBMLJg16Dqi-2Y1tb9s,58
37
- konecty_sdk_python-2.1.4.dist-info/RECORD,,
34
+ konecty_sdk_python-2.1.5.dist-info/METADATA,sha256=rH6qIAp3xqcKQBq8aaUWXOt_bD9HtPL45uxITT6isIs,5442
35
+ konecty_sdk_python-2.1.5.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
36
+ konecty_sdk_python-2.1.5.dist-info/entry_points.txt,sha256=awf962DamFgy791G3PsJ354edBMLJg16Dqi-2Y1tb9s,58
37
+ konecty_sdk_python-2.1.5.dist-info/RECORD,,