We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
proxy
1 parent 2a3df7f commit d59dc97Copy full SHA for d59dc97
domaintools/api.py
@@ -89,11 +89,8 @@ def __init__(
89
90
if not https:
91
raise Exception("The DomainTools API endpoints no longer support http traffic. Please make sure https=True.")
92
- if proxy_url:
93
- if isinstance(proxy_url, str):
94
- self.proxy_url = {"http://": proxy_url, "https://": proxy_url}
95
- else:
96
- raise Exception("Proxy URL must be a string. For example: '127.0.0.1:8888'")
+ if proxy_url and not isinstance(proxy_url, str):
+ raise Exception("Proxy URL must be a string. For example: '127.0.0.1:8888'")
97
98
def _build_api_url(self, api_url=None, api_port=None):
99
"""Build the API url based on the given url and port. Defaults to `https://api.domaintools.com`"""
0 commit comments