Skip to content

Commit

Permalink
acsphotcte: added timeout to requests.post
Browse files Browse the repository at this point in the history
to make bandit happy [ci skip]
  • Loading branch information
pllim committed Mar 14, 2023
1 parent da321b0 commit 8e40c20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acstools/acsphotcte.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def _query(self, data):
response = requests.post(
self._api_url,
data=json.dumps(data),
headers=self._api_credentials
headers=self._api_credentials,
timeout=100
)

status_code = response.status_code
Expand Down

0 comments on commit 8e40c20

Please sign in to comment.