I'm fixing bug 414055 in Apport and I found that load() function at Credentials class don't raise and exception error when file doesn't exist. It should raise CredentialsFileError not only when version doesn't match, but also if file doesn't exists.
After that, I could do some try..except..finally to check if credentials file is corrupted or doesn't exist and ask user to generate a new one.
Hi!
I'm fixing bug 414055 in Apport and I found that load() function at Credentials class don't raise and exception error when file doesn't exist. It should raise CredentialsFile Error not only when version doesn't match, but also if file doesn't exists.
After that, I could do some try..except. .finally to check if credentials file is corrupted or doesn't exist and ask user to generate a new one.
Thank you.