mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-11-25 09:09:20 +02:00
added timeout for context fetch
This commit is contained in:
parent
c96056f9a4
commit
63f94ed574
|
@ -53,7 +53,7 @@ def get_status_context(status_id):
|
||||||
success = 0
|
success = 0
|
||||||
while success == 0:
|
while success == 0:
|
||||||
try:
|
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()
|
r.raise_for_status()
|
||||||
success = 1
|
success = 1
|
||||||
return r.json()
|
return r.json()
|
||||||
|
|
Loading…
Reference in New Issue