Issue #17 resolved

Geocode was passed a non-existent address

CTPAHHuK_HEbA
created an issue
  • Django 1.5
  • geopy 0.95.1
  • django-easy-maps 0.8

In the Admin set the address does not exist and then look

Error (500):

  File "/usr/lib/python2.7/site-packages/geopy/geocoders/googlev3.py", line 197, in check_status
    'The geocode was successful but returned no results. This may'
GQueryError: The geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location.
[25/Mar/2013 13:29:48] "GET /admin/data/user/1/ HTTP/1.1" 500 170661

May be fix widgets.py:

        ...
        try:
            return default_html + map_template.render(context)
        except:
            return default_html

Comments (5)

  1. CTPAHHuK_HEbA reporter

    Error (500) - Fixed

    But there is an empty DIV("width: 700px; height: 200px;"). I would be better if it was not. Although this matter of dispute ;)

  2. Log in to comment