Skip to content

Commit

Permalink
The blanket rescue covers the ?:
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencauthon committed Oct 11, 2012
1 parent a5f302c commit 3cfc7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yahoo_weatherman/woeid_lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(app_id)
def get_woeid(location)
raw = get query_string(location)
woeid_query = Nokogiri::HTML(raw).at_xpath('.//woeid')
woeid_query ? woeid_query.content : nil
woeid_query.content
rescue
nil
end
Expand Down

0 comments on commit 3cfc7a2

Please sign in to comment.