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

Fix params to handle_error() in Pyramid middleware #287

Merged
merged 2 commits into from
Sep 18, 2018

Conversation

ronnix
Copy link
Contributor

@ronnix ronnix commented Sep 17, 2018

In the original fix in #283 I had missed that the addition of exc_info was not the only change in the signature of the handle_error function:

  • before: handle_error(settings, request)
  • after: handle_error(request, exception, exc_info)

Thanks to @indepndnt for noticing the problem!

In the original fix in 311eb45 I had
missed that the addition of exc_info was not the only change in the
signature of the handle_error function:

- before: handle_error(settings, request)
- after: handle_error(request, exception, exc_info)

Thanks to @indepndnt for noticing the problem!
@corps
Copy link
Contributor

corps commented Sep 17, 2018

@ronnix Great catch!

This inclines me to ponder if a simple test would help, considering we've made the mistake twice now. What do you think?

@ronnix
Copy link
Contributor Author

ronnix commented Sep 18, 2018

@corps you're absolutely right. here is a test that would have caught both issues.

@corps
Copy link
Contributor

corps commented Sep 18, 2018

Thank you! This looks great, I'll merge and cut a release.

@corps corps merged commit 5231c2a into rollbar:master Sep 18, 2018
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