From 6a9f91450c1ac857cacb592f4e5df3ddee9b4915 Mon Sep 17 00:00:00 2001 From: sourseas <142298417+sourseas@users.noreply.github.com> Date: Tue, 15 Aug 2023 05:20:15 -0700 Subject: [PATCH] Added timeout for call to get announcements from Github --- bazarr/app/announcements.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bazarr/app/announcements.py b/bazarr/app/announcements.py index 265942c8c..c92b86cea 100644 --- a/bazarr/app/announcements.py +++ b/bazarr/app/announcements.py @@ -43,7 +43,9 @@ def parse_announcement_dict(announcement_dict): def get_announcements_to_file(): try: - r = requests.get("https://raw.githubusercontent.com/morpheus65535/bazarr-binaries/master/announcements.json") + r = requests.get( + "https://raw.githubusercontent.com/morpheus65535/bazarr-binaries/master/announcements.json" + timeout=10) except requests.exceptions.HTTPError: logging.exception("Error trying to get announcements from Github. Http error.") except requests.exceptions.ConnectionError: