Merge pull request #31 from sgrigson/bugfix-asdict
Blockdata var already converted to _asdict()
This commit is contained in:
commit
409691089f
|
@ -476,7 +476,7 @@ def update_known_block(token: str, host: str, block: DomainBlock):
|
||||||
|
|
||||||
response = requests.put(url,
|
response = requests.put(url,
|
||||||
headers=requests_headers(token),
|
headers=requests_headers(token),
|
||||||
json=blockdata._asdict(),
|
json=blockdata,
|
||||||
timeout=REQUEST_TIMEOUT
|
timeout=REQUEST_TIMEOUT
|
||||||
)
|
)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
|
|
Loading…
Reference in New Issue