feat: add timeouts to all requests requests

This commit is contained in:
Iain Learmonth 2023-03-12 12:28:29 +00:00
parent 2498f408c8
commit fff38fa994
7 changed files with 10 additions and 7 deletions

View file

@ -23,7 +23,8 @@ class BlockRoskomsvobodaAutomation(BlockMirrorAutomation):
_data: Any
def fetch(self) -> None:
self._data = requests.get("https://reestr.rublacklist.net/api/v3/domains/").json()
self._data = requests.get("https://reestr.rublacklist.net/api/v3/domains/",
timeout=180).json()
def parse(self) -> None:
self.patterns.extend(["https://" + pattern for pattern in self._data])