Skip to content

Commit

Permalink
Replace tabs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminUrquhart authored May 29, 2018
1 parent 3a1aac3 commit 37b49fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyweather.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,9 +870,9 @@ def radar_clearImages():
sys.exit()

# API keys shoudn't have spaces. Fixes #78.
# Just in case, let's also remove newlines.
# Just in case, let's also remove tabs and newlines.

apikey = apikey.replace(" ","").replace("\n","")
apikey = apikey.replace(" ","").replace("\n","").replace("\t","")

# Validate the user's API key for the full API key validation - Section 16
if validateAPIKey == True:
Expand Down

0 comments on commit 37b49fd

Please sign in to comment.