When users create add their API Key to a config file it is possible that
whitespace accidentally added into the file will cause issues when
constructing the URI. Fix API call failures by trying harder to remove
whitespace in the file. Ensure read_key() will strip whitespace and
only use the first line.
This still needs some work as we don't want to create files if they don't exist -- tests leave dirty files -- and will need to deal with the case where next() could raise StopIteration
When users create add their API Key to a config file it is possible that whitespace accidentally added into the file will cause issues when constructing the URI. Fix API call failures by trying harder to remove whitespace in the file. Ensure read_key() will strip whitespace and only use the first line.
Signed-off-by: Jamie Couture jamie.couture@nasdaq.com