Fix error - message content
This commit is contained in:
parent
f0d68faf09
commit
e15a57cbfd
1 changed files with 6 additions and 0 deletions
|
@ -196,4 +196,10 @@ def get_message_content(register_id, register_r, oun, s, date, school_year, symb
|
||||||
|
|
||||||
content = sess.post(f'{link}/Wiadomosc.mvc/GetInboxMessageDetails', data=json.dumps(payload))
|
content = sess.post(f'{link}/Wiadomosc.mvc/GetInboxMessageDetails', data=json.dumps(payload))
|
||||||
|
|
||||||
|
if content.status_code != 200:
|
||||||
|
while True:
|
||||||
|
content = sess.post(f'{link}/Wiadomosc.mvc/GetInboxMessageDetails', data=json.dumps(payload))
|
||||||
|
if content.status_code == 200:
|
||||||
|
break
|
||||||
|
|
||||||
return content.json()
|
return content.json()
|
Loading…
Reference in a new issue