I think it also should raise CredentialsFileError at load() if consumer and access_token variables are broken for some reason (someone or some software could remove the consumer_key line from credentials file), like save() function currently does.
This will help to catch only one exception from load() function and not the ones from ConfigParser (MissingSectionHeaderError, NoOptionError).
I think it also should raise CredentialsFile Error at load() if consumer and access_token variables are broken for some reason (someone or some software could remove the consumer_key line from credentials file), like save() function currently does.
This will help to catch only one exception from load() function and not the ones from ConfigParser (MissingSection HeaderError, NoOptionError).
Thanks