Создаётся ошибка при проверке статуса.
d1n0z opened this issue · 0 comments
d1n0z commented
Полный код ошибки:
Traceback (most recent call last):
File "C:\Users\SuperUser\AppData\Local\Programs\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\SuperUser\AppData\Local\Programs\Python\Python36-32\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:/Users/SuperUser/PycharmProjects/bot/main.py", line 117, in bill
if p2p.check(bill_id=new_bill.bill_id).status == "PAID":
File "C:\Users\SuperUser\PycharmProjects\bot\venv\lib\site-packages\pyqiwip2p\Qiwip2p.py", line 114, in check
qiwi_response = Bill(qiwi_raw_response, self)
File "C:\Users\SuperUser\PycharmProjects\bot\venv\lib\site-packages\pyqiwip2p\p2p_types\Responses.py", line 67, in __init__
raise QiwiError(self.r_json)
File "C:\Users\SuperUser\PycharmProjects\bot\venv\lib\site-packages\pyqiwip2p\p2p_types\Errors.py", line 34, in __init__
self.datetime = QiwiDatetime(response_json["dateTime"])
File "C:\Users\SuperUser\PycharmProjects\bot\venv\lib\site-packages\pyqiwip2p\p2p_types\QiwiDatetime.py", line 38, in __init__
self.set_from_qiwi(moment)
File "C:\Users\SuperUser\PycharmProjects\bot\venv\lib\site-packages\pyqiwip2p\p2p_types\QiwiDatetime.py", line 78, in set_from_qiwi
self.datetime = self.qiwi_datetime(dt)
File "C:\Users\SuperUser\PycharmProjects\bot\venv\lib\site-packages\pyqiwip2p\p2p_types\QiwiDatetime.py", line 70, in qiwi_datetime
return datetime.strptime(dt, "%Y-%m-%dT%H:%M:%S.%f%z")
File "C:\Users\SuperUser\AppData\Local\Programs\Python\Python36-32\lib\_strptime.py", line 565, in _strptime_datetime
tt, fraction = _strptime(data_string, format)
File "C:\Users\SuperUser\AppData\Local\Programs\Python\Python36-32\lib\_strptime.py", line 362, in _strptime
(data_string, format))
ValueError: time data '2022-08-12T12:44:52.586+03:00' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'
Строка, в которой создается ошибка:
if p2p.check(bill_id=new_bill.bill_id).status == "PAID":