increase timeout
This commit is contained in:
parent
6f47d7e653
commit
9c65e64b3b
@ -138,7 +138,7 @@ medium_channel_item_template = Template('''
|
|||||||
''')
|
''')
|
||||||
|
|
||||||
|
|
||||||
def fetch_url(url, headers=(), timeout=5, report_text=None):
|
def fetch_url(url, headers=(), timeout=15, report_text=None):
|
||||||
if isinstance(headers, list):
|
if isinstance(headers, list):
|
||||||
headers += [('Accept-Encoding', 'gzip, br')]
|
headers += [('Accept-Encoding', 'gzip, br')]
|
||||||
headers = dict(headers)
|
headers = dict(headers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user