Permalink
Browse files

Fix bug with nil response status to geonames query.

  • Loading branch information...
1 parent 6230c7d commit efd0e6261a60479125b55f5a10132931d95a93cb @danielmorrison danielmorrison committed Jun 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/graticule/geocoder/geonames.rb
@@ -35,7 +35,7 @@ def parse_response(response) #:nodoc:
# Extracts and raises an error from +xml+, if any.
def check_error(response) #:nodoc:
- if response.status
+ if response && response.status
case response.status.value
when 14 then
raise Error, reponse.status.message

0 comments on commit efd0e62

Please sign in to comment.