Description
Mobile Authenticator raise a NoneType error on attempting to login with cli_login
Steps to Reproduce the behavior
- Set username and password on the constructor
- use cli_login
- do the captcha
- do the 2FA
Code
fromsteam.webauthimportMobileWebAuthusername, password="", ""wa=MobileWebAuth(username, password)
wa.cli_login()
Expected behavior
It should give me a valid error/successful login
Tracebacks
Traceback (mostrecentcalllast):
File"U:\Programming\PycharmProjects\steam_profile\venv\Lib\site-packages\steam\webauth.py", line266, incli_loginreturnself.login(password, captcha, email_code, twofactor_code, language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"U:\Programming\PycharmProjects\steam_profile\venv\Lib\site-packages\steam\webauth.py", line193, inloginifresp['success'] andresp['login_complete']:
~~~~^^^^^^^^^^^TypeError: 'NoneType'objectisnotsubscriptable
It looks like self._send_login is returning None somehow.
Versions Report
python -m steam.versions_report
steam: 1.4.4Dependencies:
vdf: 3.4protobuf: 3.20.3requests: 2.32.3cachetools: 5.4.0gevent: 24.2.1gevent-eventemitter: 2.1pycryptodomex: 3.20.0enum34: Not Installedwin-inet-pton: Not InstalledPython runtime:
executable: U:\Programming\PycharmProjects\steam_profile\venv\Scripts\python.exeversion: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]platform: win32System info:
system: Windowsmachine: AMD64release: 10version: 10.0.22631
Description
Mobile Authenticator raise a NoneType error on attempting to login with cli_login
Steps to Reproduce the behavior
Code
Expected behavior
It should give me a valid error/successful login
Tracebacks
It looks like
self._send_loginis returning None somehow.Versions Report
python -m steam.versions_report