hmm retry
This commit is contained in:
parent
a1c603edcf
commit
77ba5ba2b6
@ -1,6 +1,7 @@
|
||||
import argparse
|
||||
import requests
|
||||
from requests_toolbelt.adapters import host_header_ssl
|
||||
from urllib3.util import Retry
|
||||
from urllib.parse import quote as encodeURI
|
||||
import os
|
||||
from pymongo import MongoClient
|
||||
@ -17,7 +18,7 @@ args = ap.parse_args()
|
||||
|
||||
|
||||
rqs = requests.Session()
|
||||
rqs.mount('https://', host_header_ssl.HostHeaderSSLAdapter())
|
||||
rqs.mount('https://', host_header_ssl.HostHeaderSSLAdapter(max_retries=Retry(total=5, backoff_factor=1)))
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user