From a37747efba6331a343f40b698b31890d8292776a Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Mon, 15 Jul 2024 20:41:22 -0700 Subject: [PATCH] fix python error re pprint --- action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.py b/action.py index 4c73557..bcf4f9a 100644 --- a/action.py +++ b/action.py @@ -118,9 +118,9 @@ def send_payload_to_api( headers = {"Content-Type": "application/json"} response = requests.post(args.api_endpoint, headers=headers, data=payload_json) print("#### Payload ####") - pprint(payload) + pprint.pprint(payload) print("#### Response ####") - pprint(response.json()) + pprint.pprint(response.json()) # Write response to application.log log_file_path = "./application.log"