Skip to content

Commit

Permalink
download: handle timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Dec 14, 2023
1 parent fe82583 commit 223ee4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion happypose/toolbox/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ async def adownload(self, download_path, local_path, flags=None):
async def download_dir(self, download_path, local_path, flags):
try:
r = await self.client.get(download_path)
except httpx.PoolTimeout:
except (httpx.PoolTimeout, httpx.ReadTimeout):
logger.error(f"Failed {download_path} with timeout")
return
if r.status_code != 200:
Expand Down

0 comments on commit 223ee4b

Please sign in to comment.