Skip to content

Commit

Permalink
can’t do exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 10, 2015
1 parent 0ab4df4 commit bae88d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions comet/web.py
Expand Up @@ -103,7 +103,8 @@ def configure_site():
if site.configured:
scan_site()
else:
raise Exception("Not a Nikola site.")
app.logger("Not a Nikola site.")
return

app.secret_key = site.config.get('COMET_SECRET_KEY')
app.config['COMET_URL'] = site.config.get('COMET_URL')
Expand Down Expand Up @@ -378,7 +379,8 @@ def read_users():
app.config['USERS'] = {}

if not os.path.exists(app.config['USERS_PATH']):
raise Exception("Cannot find comet_users.json.")
app.logger.error("Cannot find comet_users.json.")
return

with io.open(app.config['USERS_PATH'], 'r', encoding='utf-8') as fh:
udict = json.load(fh)
Expand Down

0 comments on commit bae88d7

Please sign in to comment.