Skip to content

Commit

Permalink
Bandit: Fix B113: request_without_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lipoja authored and yashvardhannanavati committed Mar 14, 2023
1 parent 99a2e55 commit e35bec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iib/workers/greenwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def gate_bundles(bundles: List[str], greenwave_config: GreenwaveConfig) -> None:
)

request_url = f'{conf["iib_greenwave_url"].rstrip("/")}/decision'
resp = requests.post(request_url, json=payload)
resp = requests.post(request_url, json=payload, timeout=30)
try:
data = resp.json()
except json.JSONDecodeError:
Expand Down

0 comments on commit e35bec7

Please sign in to comment.