Skip to content

handle setup failures gracefully, log errors, minor bug fixes - #5

Open
snarfed wants to merge 1 commit into
yasyf:masterfrom
snarfed:degrade_gracefully
Open

handle setup failures gracefully, log errors, minor bug fixes#5
snarfed wants to merge 1 commit into
yasyf:masterfrom
snarfed:degrade_gracefully

Conversation

@snarfed

@snarfed snarfed commented May 18, 2016

Copy link
Copy Markdown
Contributor

notably, don't insert Nones into the storages and bots globals, and handle empty lists in min_filter and sum_filter.

notably, don't insert Nones into the storages and bots globals, and handle empty lists in min_filter and sum_filter.
Comment thread app.py
if __name__ == '__main__':
if dev:
app.run(host='0.0.0.0', port=5000, debug=True)
app.run(host='0.0.0.0', port=5000, debug=False)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would like to keep debug=True if running in dev mode.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i actually found that when i ran heroku local with debug=True, it swallowed uncaught exceptions. with debug=False, it emitted them to stdout (or stderr).

not sure why, and i don't feel strongly. i'm happy to revert this or fix that another way if you know one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants