crslade/omniauth-oauth — comment on commit 4c7a67234d66b353132fa4cf477a4563355c9ff5
File:  line 0
By crslade:

Catching the ::NoMethodError here will also catch the error in the success callback when developers using the gem try to pull the info out of the hash. This will make them think the error is with either the service or the gem instead of them mis-using the hash.