Skip to content

Commit 508cee8

Browse files
author
Thijs Lukkezen
committed
fix: Raise RuntimeError with /get-task-status response "msg" value instead of "status_code" when "state"=="FAILURE"
1 parent 94cf55c commit 508cee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pypilecore/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def wait_until_ticket_is_ready(client: NucleiClient, ticket: Response) -> None:
2323

2424
if status == "FAILURE":
2525
raise RuntimeError(
26-
f'Status: {response.json()["status_code"]}. {response.json()["msg"]}'
26+
f'Status: {response.json()["msg"]}. {response.json()["msg"]}'
2727
)
2828

2929

0 commit comments

Comments
 (0)