<NME> geocode.py
<BEF> from django.utils.encoding import smart_str
from __future__ import absolute_import
from django.utils.encoding import smart_str
from geopy import geocoders

class Error(Exception):
    pass
class Error(Exception):
    pass


def google_v3(address):
    """
    Given an address, return ``(computed_address, (latitude, longitude))``
    tuple using Google Geocoding API v3.
        g = geocoders.GoogleV3()
        address = smart_str(address)
        return g.geocode(address, exactly_one=False)[0]
    except (UnboundLocalError, ValueError, geocoders.google.GQueryError) as e:
        raise Error(e)
        results = g.geocode(smart_str(address), exactly_one=False)
        if results is not None:
            return results[0]

        raise Error("No results found for '%s'" % address)
    except (UnboundLocalError, ValueError, GeocoderServiceError) as e:
        raise Error(e)

<MSG> Catch proper exception. Should fix BB-17

<DFF> @@ -2,6 +2,7 @@
 from __future__ import absolute_import
 from django.utils.encoding import smart_str
 from geopy import geocoders
+from geopy.geocoders.base import GeocoderResultError
 
 class Error(Exception):
     pass
@@ -16,5 +17,5 @@ def google_v3(address):
         g = geocoders.GoogleV3()
         address = smart_str(address)
         return g.geocode(address, exactly_one=False)[0]
-    except (UnboundLocalError, ValueError, geocoders.google.GQueryError) as e:
+    except (UnboundLocalError, ValueError, GeocoderResultError) as e:
         raise Error(e)

Catch proper exception. Should fix BB-17