edelight/chef-cookbooks — comment on commit 4eaed04d224705043774869f8b4ebf9c0cac0a6c
File:  line 0
By lackac:

If you don't care about the type of exception you get you could use the inline `rescue` statement:

``` ruby
replicaset_name = replicaset['mongodb']['replicaset_name'] rescue nil
```