Skip to content

Commit 0063c4f

Browse files
committed
fix: use timeout as async context manager
1 parent aa545e1 commit 0063c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dingz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def make_call(
3838
self._close_session = True
3939

4040
try:
41-
with async_timeout.timeout(TIMEOUT):
41+
async with async_timeout.timeout(TIMEOUT):
4242
response = await self._session.request(
4343
method, uri, data=data, json=json_data, params=parameters, headers=headers,
4444
)

0 commit comments

Comments
 (0)