typo
This commit is contained in:
@@ -17,7 +17,7 @@ req = urllib.request.Request(
|
|||||||
method="POST"
|
method="POST"
|
||||||
)
|
)
|
||||||
|
|
||||||
with urllib.request.urlopen(url, timeout=10) as response:
|
with urllib.request.urlopen(req, timeout=10) as response:
|
||||||
data = response.read()
|
data = response.read()
|
||||||
json_data = json.loads(data)
|
json_data = json.loads(data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user