architv / soccer-cli

:soccer: Football scores for hackers. :computer: A command line interface for all the football scores.
MIT License
1.09k stars 222 forks source link

bug fixed: invalid header value, was adding newline char #152

Closed arunkhattri closed 2 years ago

arunkhattri commented 2 years ago

somehow creating ~/.soccer-cli.ini file and reading api key with this file was giving continuous Value Error: Invalid header value ValueError: Invalid header value '*******************\n'

after cleaning the read input of api key for any whitespace, newline and tab character, its working fine

dfrt82 commented 2 years ago

should also work fine if you do not enter the newline in your .ini file!?