added timeout for context fetch

This commit is contained in:
localhost_frssoft 2023-07-28 10:38:13 +03:00
parent c96056f9a4
commit 63f94ed574

View File

@ -53,7 +53,7 @@ def get_status_context(status_id):
success = 0
while success == 0:
try:
r = s.get(instance_point + f"/statuses/{status_id}/context")
r = s.get(instance_point + f"/statuses/{status_id}/context", timeout=30)
r.raise_for_status()
success = 1
return r.json()