Skip to content

Commit

Permalink
response isn't necessarily json
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 16, 2024
1 parent a37747e commit d2d3090
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ def send_payload_to_api(
print("#### Payload ####")
pprint.pprint(payload)
print("#### Response ####")
pprint.pprint(response.json())
try:
pprint.pprint(response.json())
except:
print(response.text)

# Write response to application.log
log_file_path = "./application.log"
Expand Down

0 comments on commit d2d3090

Please sign in to comment.