stripping newlines from api key
This commit is contained in:
parent
b94d8b2834
commit
227b7197d3
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ def get_api_key():
|
|||
for line in cf:
|
||||
line = line.split('=', 1)
|
||||
if line[0] == 'api_key':
|
||||
api_key = line[1]
|
||||
api_key = line[1].strip()
|
||||
cf.close()
|
||||
except IOError:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue