Getting None value while calling method keyring.get_password()

I work on python migration from 3.7 to 3.10.10 with wxpython 4.2.1.I am getting None value while calling method keyring.get_password(“Test_Servicename”, “Test_username”).
Is there any compatible issue with keyring 24.2.0.

I am not sure what connection there is between the python keyring module and wxPython (the subject of this forum)?

I doubt this will help much but:

get_password(service, username): Returns the password stored in the active keyring. If the password does not exist, it will return None.

https://keyring.readthedocs.io/en/latest/

Which rather suggests your input or the service/username is at fault.