mirror of
https://git.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-24 17:20:57 +01: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
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user