Skip to content

Fix exception translation#19

Merged
c-w merged 1 commit intoryan-roemer:masterfrom
CatalystCode:fix-exception-translation
May 23, 2019
Merged

Fix exception translation#19
c-w merged 1 commit intoryan-roemer:masterfrom
CatalystCode:fix-exception-translation

Conversation

@c-w
Copy link
Collaborator

@c-w c-w commented May 18, 2019

I've seen behavior where the second or third initialization of the exception translation wrapper doesn't correctly dereference the lazy_translations in __new__ which leads to some exceptions not being translated and therefore HTTP 500 errors coming through to the user.

This pull request makes the wrapper more reliable by removing the need for __new__ and simplifying the code to dereference the lazy_translations only at usage time.

@c-w c-w merged commit fa6fea5 into ryan-roemer:master May 23, 2019
@c-w c-w deleted the fix-exception-translation branch May 23, 2019 17:21
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.

1 participant