Skip to content

Commit

Permalink
Catch all exceptions in watch block
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Chagnon committed Sep 4, 2020
1 parent 655736f commit d87871f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/redis/distributed.rb
Expand Up @@ -808,8 +808,6 @@ def watch(*keys, &block)

begin
node.watch(*keys, &block)
rescue ConnectionError
raise
rescue StandardError
@watch_key = nil
raise
Expand Down

0 comments on commit d87871f

Please sign in to comment.