Skip to content

Conversation

@erinzm
Copy link

@erinzm erinzm commented Jun 15, 2017

No description provided.

@erinzm erinzm force-pushed the app-exception-handling branch from 2926e16 to 33c09e3 Compare June 16, 2017 17:45
@erinzm erinzm force-pushed the app-exception-handling branch from 33c09e3 to eb7bef4 Compare June 16, 2017 17:45
@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.

4 participants