Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Создаётся ошибка при проверке статуса. #40

Open
d1n0z opened this issue Aug 14, 2022 · 0 comments
Open

Comments

@d1n0z
Copy link

d1n0z commented Aug 14, 2022

Полный код ошибки:

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":

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant