Skip to content

Commit

Permalink
Issue #754. Change remaining instances of BOT_OAUTH_TOKEN.
Browse files Browse the repository at this point in the history
(No review, trying to unbreak app).
  • Loading branch information
Mike Taylor committed Oct 12, 2015
1 parent bad8b78 commit 37efa68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
raise ImportError('{0}\n\n{1}'.format(e, IMPORT_ERROR))


BOT_HELP = '''
The BOT_OAUTH_TOKEN is not configured in your config file.
TOKEN_HELP = '''
The OAUTH_TOKEN is not configured in your config file.
You will need to set up one on github for testing your
local developments.
Read Instructions at
Expand Down Expand Up @@ -73,9 +73,9 @@ def check_pip_deps():

def config_validator():
'''Make sure the config file is ready.'''
# Checking if there is a bot configured
if app.config['BOT_OAUTH_TOKEN'] == '':
sys.exit(BOT_HELP)
# Checking if oauth token is configured
if app.config['OAUTH_TOKEN'] == '':
sys.exit(TOKEN_HELP)

if __name__ == '__main__':
# testing the config file
Expand Down
2 changes: 1 addition & 1 deletion webcompat/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from webcompat import github

REPO_URI = app.config['ISSUES_REPO_URI']
BOT_TOKEN = app.config['BOT_OAUTH_TOKEN']
OAUTH_TOKEN = app.config['OAUTH_TOKEN']
AUTH_HEADERS = {'Authorization': 'token {0}'.format(BOT_TOKEN),
'User-Agent': 'webcompat/webcompat-bot'}

Expand Down

0 comments on commit 37efa68

Please sign in to comment.