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

make status_changed signal more robust #151

Closed
wants to merge 4 commits into from

Conversation

devkral
Copy link
Contributor

@devkral devkral commented Oct 7, 2017

Instead of using send, use send_robust and check for errors in the return values. These are logged with logging level critical so they are clearly visible.

If you have a bank facing api it can be really annoying if a signal handler crashes because you don't see the error (in debug mode) and a small unimportant handler can corrupt a transaction. This fixes the issue.

@codecov-io
Copy link

codecov-io commented Oct 7, 2017

Codecov Report

Merging #151 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
+ Coverage   79.13%   79.18%   +0.05%     
==========================================
  Files          27       27              
  Lines        1649     1653       +4     
  Branches      190      192       +2     
==========================================
+ Hits         1305     1309       +4     
  Misses        245      245              
  Partials       99       99
Impacted Files Coverage Δ
payments/models.py 75.6% <100%> (+0.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49c93aa...03eb55c. Read the comment docs.

@devkral
Copy link
Contributor Author

devkral commented Oct 9, 2017

integrated in #149

@devkral devkral closed this Oct 9, 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.

2 participants