misc: add timeout to ICS retrieval (#68474)
This commit is contained in:
parent
68d7a1b480
commit
8804213fca
|
@ -2459,7 +2459,7 @@ class TimePeriodExceptionSource(models.Model):
|
|||
if self.ics_url:
|
||||
ics_url = self.render_ics_url()
|
||||
try:
|
||||
response = requests.get(ics_url, proxies=settings.REQUESTS_PROXIES)
|
||||
response = requests.get(ics_url, proxies=settings.REQUESTS_PROXIES, timeout=15)
|
||||
response.raise_for_status()
|
||||
except requests.HTTPError as e:
|
||||
raise ICSError(
|
||||
|
|
Loading…
Reference in New Issue