Skip to content

Commit

Permalink
typing: add timeout as ClientTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasNeugebauer committed Jan 24, 2025
1 parent c8e9a83 commit e5ed4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learning_loop_node/detector/outbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def _upload_batch(self, items: List[str]):

try:
async with aiohttp.ClientSession() as session:
response = await session.post(self.target_uri, data=data, timeout=self.UPLOAD_TIMEOUT_S)
response = await session.post(self.target_uri, data=data, timeout=aiohttp.ClientTimeout(total=self.UPLOAD_TIMEOUT_S))
except Exception:
self.log.exception('Could not upload images')
return
Expand Down

0 comments on commit e5ed4f7

Please sign in to comment.