feat: add timeouts to all requests requests
This commit is contained in:
parent
2498f408c8
commit
fff38fa994
7 changed files with 10 additions and 7 deletions
|
@ -16,7 +16,7 @@ class BlockExternalAutomation(BlockMirrorAutomation):
|
|||
|
||||
def fetch(self) -> None:
|
||||
user_agent = {'User-agent': 'BypassCensorship/1.0'}
|
||||
page = requests.get(app.config['EXTERNAL_CHECK_URL'], headers=user_agent)
|
||||
page = requests.get(app.config['EXTERNAL_CHECK_URL'], headers=user_agent, timeout=30)
|
||||
self._content = page.content
|
||||
|
||||
def parse(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue