Skip to content

Commit

Permalink
Strip whitespace from env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M Furley committed Jun 20, 2018
1 parent f43ddd6 commit 42610bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraper.py
Expand Up @@ -13,10 +13,10 @@

ONE_HOUR = datetime.timedelta(hours=1)

TWITTER_CONSUMER_KEY = os.environ['MORPH_TWITTER_CONSUMER_KEY'],
TWITTER_CONSUMER_SECRET = os.environ['MORPH_TWITTER_CONSUMER_SECRET']
TWITTER_ACCESS_TOKEN = os.environ['MORPH_TWITTER_ACCESS_TOKEN']
TWITTER_ACCESS_TOKEN_SECRET = os.environ['MORPH_TWITTER_ACCESS_TOKEN_SECRET']
TWITTER_CONSUMER_KEY = os.environ['MORPH_TWITTER_CONSUMER_KEY'].strip()
TWITTER_CONSUMER_SECRET = os.environ['MORPH_TWITTER_CONSUMER_SECRET'.strip()
TWITTER_ACCESS_TOKEN = os.environ['MORPH_TWITTER_ACCESS_TOKEN'.strip()
TWITTER_ACCESS_TOKEN_SECRET = os.environ['MORPH_TWITTER_ACCESS_TOKEN_SECRET'.strip()

DEBUG = os.environ.get('MORPH_DEBUG', 'false') in ('1', 'true', 'yes')

Expand Down

0 comments on commit 42610bb

Please sign in to comment.