Blockdata var already converted to _asdict()
This commit is contained in:
parent
ede2918740
commit
8d3b9da144
|
@ -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