Skip to content

Commit 4d8bab5

Browse files
authored
Update http.py
1 parent 96852f8 commit 4d8bab5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coc/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,7 @@ async def initialise_keys(self):
425425
LOG.info("Successfully logged into the developer site.")
426426

427427
resp_paylaod = await resp.json()
428-
ip = json_loads(base64_b64decode(resp_paylaod["temporaryAPIToken"].split(".")[1] + "====").decode("utf-8"))[
429-
"limits"][1]["cidrs"][0].split("/")[0]
428+
ip = json_loads(base64_b64decode(resp_paylaod["temporaryAPIToken"].split(".")[1] + "====").decode("utf-8"))["limits"][1]["cidrs"][0].split("/")[0]
430429

431430
LOG.info("Found IP address to be %s", ip)
432431

0 commit comments

Comments
 (0)