Skip to content

Commit

Permalink
Extend timeout for fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed May 24, 2024
1 parent a8bd8a0 commit 3294e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def fetch_class_mappings(css_translations_path : str, loader : Loader):
Log(f"Fetching CSS mappings from {css_translations_url}")

try:
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False, use_dns_cache=False), timeout=aiohttp.ClientTimeout(total=5)) as session:
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False, use_dns_cache=False), timeout=aiohttp.ClientTimeout(total=30)) as session:
async with session.get(css_translations_url) as response:
if response.status == 200:
text = await response.text()
Expand Down

0 comments on commit 3294e63

Please sign in to comment.