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

Gracefully handle error when deleting a missing message #142

Merged
merged 1 commit into from Mar 21, 2022

Conversation

Tijani-Dia
Copy link
Collaborator

This PR aims to fix issue #141.

When a KeyError is raised when deleting a missing message, warn the user and return a 200 response.

@codecov-commenter
Copy link

Codecov Report

Merging #142 (6cee4ab) into main (dd769be) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #142   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           40        40           
  Lines         1091      1094    +3     
  Branches       103       149   +46     
=========================================
+ Hits          1091      1094    +3     
Impacted Files Coverage Δ
src/wagtail_live/receivers/base.py 100.00% <100.00%> (ø)

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 dd769be...6cee4ab. Read the comment docs.

@Tijani-Dia Tijani-Dia merged commit d9915bf into main Mar 21, 2022
@Tijani-Dia Tijani-Dia deleted the feature/handle-delete-errors branch March 21, 2022 14:35
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.

Deleting a message that is not present on a live page gives a 500 error
3 participants