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

Raise ValueError when a watcher cannot be unwatched instead of logging a warning #1018

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Feb 11, 2025

Resolves #1003

By raising ValueError when trying to remove an already removed/never registered watcher.

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.11%. Comparing base (031a4f4) to head (5c0bf07).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1018      +/-   ##
==========================================
- Coverage   87.25%   87.11%   -0.14%     
==========================================
  Files           9        9              
  Lines        4928     4929       +1     
==========================================
- Hits         4300     4294       -6     
- Misses        628      635       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maximlt
Copy link
Member Author

maximlt commented Feb 11, 2025

@jlstevens I believe you're the last person who refactored unwatch, do you mind reviewing this change :) ?

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.

unwatch should not log a warning when it fails
1 participant