Merge pull request #31 from sgrigson/bugfix-asdict

Blockdata var already converted to _asdict()
This commit is contained in:
Justin Warren 2023-01-19 06:39:43 +11:00 committed by GitHub
commit 409691089f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: