Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clean up App exception handling [WIP]#192

Open
erinzm wants to merge 3 commits into
master from
app-exception-handling
Open

Clean up App exception handling [WIP] #192
erinzm wants to merge 3 commits into
master from
app-exception-handling

Conversation

@erinzm

@erinzm erinzm commented Jun 15, 2017

Copy link
Copy Markdown

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

Copy link
Copy Markdown
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 commented Jul 10, 2017
edited
Loading

Copy link
Copy Markdown
Author

@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 commented Jul 10, 2017 via email

Copy link
Copy Markdown
Member
Just to make sure, this propagates back to the user right (ie you get an error as a response to the api call?). Lalit
...
On Mon, Jul 10, 2017 at 11:42 AM, Liam Marshall ***@***.***> wrote: @lalitkumarj <https://github.com/lalitkumarj> The try-except blocks had virtually 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 <https://github.com/nextml/NEXT/pull/192/files#diff-5806b38ec37128c1df1ceecced84a9d9R42>, which performs the same error checking/logging as the original blocks. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#192 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABWhGBgBcy_Rt-7HaWxpASQ61n7vHJkUks5sMkZygaJpZM4N7gea> .

@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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /