Skip to content

Commit

Permalink
timeout 20 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubom committed Jul 23, 2024
1 parent 6b9e137 commit a79af6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iata_code_fetcher/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def fetch_and_process_data(code: str, code_type: CodeType) -> Tuple[Union[List[D
file_path = CARRIER_FILE if code_type == CodeType.CARRIER else AIRPORT_FILE

try:
response = requests.get(url, timeout=10)
response = requests.get(url, timeout=20)
response.raise_for_status()
soup = BeautifulSoup(response.text, "html.parser")
table = soup.find("table", {"class": "datatable"})
Expand Down

0 comments on commit a79af6b

Please sign in to comment.