You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reviewing Marc's docstring update work, I saw that unwatch apparently logs a warning if it fails at removing a watcher, there has to be a better way, e.g. raising a LookupError.
defunwatch(self_, watcher):
"""Remove the given Watcher object (from `watch` or `watch_values`) from this object's list."""try:
self_._register_watcher('remove', watcher, what=watcher.what)
exceptException:
self_.warning(f'No such watcher {str(watcher)} to remove.')
The text was updated successfully, but these errors were encountered:
Reviewing Marc's docstring update work, I saw that
unwatch
apparently logs a warning if it fails at removing a watcher, there has to be a better way, e.g. raising aLookupError
.The text was updated successfully, but these errors were encountered: