mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
requests verify argument name fix
This commit is contained in:
parent
4adef4de8a
commit
5699c26f6b
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ class JSONRPCDaemon(object):
|
|||
data=json.dumps(data, indent=2, sort_keys=True)))
|
||||
rsp = requests.post(
|
||||
self.url + path, headers=hdr, data=json.dumps(data),
|
||||
timeout=self.timeout, verify_ssl_certs=self.verify_ssl_certs)
|
||||
timeout=self.timeout, verify=self.verify_ssl_certs)
|
||||
if rsp.status_code != 200:
|
||||
raise RPCError("Invalid HTTP status {code} for path {path}.".format(
|
||||
code=rsp.status_code,
|
||||
|
@ -89,7 +89,7 @@ class JSONRPCDaemon(object):
|
|||
auth = requests.auth.HTTPDigestAuth(self.user, self.password)
|
||||
rsp = requests.post(
|
||||
self.url + '/json_rpc', headers=hdr, data=json.dumps(data), auth=auth,
|
||||
timeout=self.timeout, verify_ssl_certs=self.verify_ssl_certs)
|
||||
timeout=self.timeout, verify=self.verify_ssl_certs)
|
||||
|
||||
if rsp.status_code == 401:
|
||||
raise Unauthorized("401 Unauthorized. Invalid RPC user name or password.")
|
||||
|
@ -357,7 +357,7 @@ class JSONRPCWallet(object):
|
|||
auth = requests.auth.HTTPDigestAuth(self.user, self.password)
|
||||
rsp = requests.post(
|
||||
self.url, headers=hdr, data=json.dumps(data), auth=auth,
|
||||
timeout=self.timeout, verify_ssl_certs=self.verify_ssl_certs)
|
||||
timeout=self.timeout, verify=self.verify_ssl_certs)
|
||||
|
||||
if rsp.status_code == 401:
|
||||
raise Unauthorized("401 Unauthorized. Invalid RPC user name or password.")
|
||||
|
|
Loading…
Reference in a new issue