Skip to content

Commit 891d166

Browse files
authored
Merge pull request #724 from ckhall/master
error handling example should not rescue Exception
2 parents e5af405 + a17283a commit 891d166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ it can't connect to the server a `Redis::CannotConnectError` error will be raise
176176
```ruby
177177
begin
178178
redis.ping
179-
rescue Exception => e
179+
rescue StandardError => e
180180
e.inspect
181181
# => #<Redis::CannotConnectError: Timed out connecting to Redis on 10.0.1.1:6380>
182182

0 commit comments

Comments
 (0)