puppetlabs/puppet — pull request #975 by djmitche (2012-07-27 17:07:38+00:00)
Title: Don't mask NoMethodErrors

This rescue was masking a bug in a provider (involving calling `[]` on
`nil.NilClass`) with a misleading error message. The new code asks
permission rather than begging forgiveness, but is more specific to the
problem being detected.

This needs tests, and may break existing tests. I'll update the pull request for that once I get tests running properly locally.