diff --git a/app/downloader.py b/app/downloader.py index 23bf3f6..d545e3e 100644 --- a/app/downloader.py +++ b/app/downloader.py @@ -80,7 +80,7 @@ def send_ntfy_notification(message, title=None): # Function to get the latest releases and sort by date def get_latest_releases(url, scan_count=10): - response = requests.get(url) + response = requests.get(url, timeout=10) response.raise_for_status() releases = response.json() # Sort releases by published date, descending order diff --git a/app/menu_firmware.py b/app/menu_firmware.py index 33db71a..4171658 100644 --- a/app/menu_firmware.py +++ b/app/menu_firmware.py @@ -8,7 +8,7 @@ def fetch_firmware_assets(): firmware_releases_url = "https://api.github.com/repos/meshtastic/firmware/releases" - response = requests.get(firmware_releases_url) + response = requests.get(firmware_releases_url, timeout=10) response.raise_for_status() releases = response.json() # Get the latest release