I've moved that call outside since I need before and the exception may be raised because of the keyring.
There's no need of try/except here.