Fixes
This commit is contained in:
parent
ae22d14437
commit
9b743bb101
3 changed files with 176 additions and 164 deletions
|
|
@ -33,7 +33,6 @@ try:
|
|||
except:
|
||||
TorContactInfoParser = None
|
||||
|
||||
|
||||
class TrustorError(Exception): pass
|
||||
|
||||
# https://stackoverflow.com/questions/2532053/validate-a-hostname-string
|
||||
|
|
@ -235,7 +234,10 @@ def oDownloadUrl(domain, sCAfile, timeout=30, host='127.0.0.1', port=9050):
|
|||
except Exception as e:
|
||||
LOG.warn(f"Could not import HTTPSAdapter {e}")
|
||||
HTTPSAdapter = None
|
||||
|
||||
raise SystemExit(f"{e}")
|
||||
else:
|
||||
LOG.info(f"Loaded HTTPSAdapter")
|
||||
|
||||
try:
|
||||
with requests.sessions.Session() as session:
|
||||
if HTTPSAdapter:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue