Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up App exception handling [WIP] #192

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

erinzm
Copy link

@erinzm erinzm commented Jun 15, 2017

No description provided.

@lalitkumarj
Copy link
Member

I don't understand, why were the try except blocks pulled out? This was the only good way of bubbling app level exceptions up to the user through the api?

@erinzm
Copy link
Author

erinzm commented Jul 10, 2017

@lalitkumarj The try-except blocks had essentially duplicated code in each, so the exception handling was moved into tasks.py, where each of the app functions is called.

This is done by wrapping every call to an app function in this decorator, which performs the same error checking/logging as the original blocks.

@lalitkumarj
Copy link
Member

lalitkumarj commented Jul 10, 2017 via email

@erinzm erinzm changed the title Clean up App exception handling Clean up App exception handling [WIP] Jul 10, 2017
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.

3 participants