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

В синхронном варианте отшибает ошибку по не вызову асинхронной функции esia_login #4

Open
AlexNetYT opened this issue Dec 16, 2024 · 1 comment

Comments

@AlexNetYT
Copy link

File in module
main()
File in main
mobile_api()
File line 143, in mobile_api
api.token = login_gosuslugi(api, login, password) # получение и сохранение API-Токена
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File line 45, in login_gosuslugi
return token
^^^^^
UnboundLocalError: cannot access local variable 'token' where it is not associated with a value
sys:1: RuntimeWarning: coroutine 'AsyncMobileAPI.esia_login' was never awaited

@Den4ikSuperOstryyPer4ik
Copy link
Member

@AlexNetYT Спасибо! Исправим.

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

2 participants