Skip to content

Commit

Permalink
acszpt: added timeout to requests.post
Browse files Browse the repository at this point in the history
to make bandit happy
  • Loading branch information
pllim authored Mar 14, 2023
1 parent 8e40c20 commit 338f864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acstools/acszpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def fetch(self):
"https://stsci.service-now.com/hst")

try:
response = requests.post(invokeURL, data=body)
response = requests.post(invokeURL, data=body, timeout=100)

except requests.exceptions.HTTPError:
raise ACSZeropointQueryError(f"HTTP Error to AWS API Gateway:{help_desk_string}") from None
Expand Down

0 comments on commit 338f864

Please sign in to comment.