Commits

Anonymous committed b9e99cc

Fixed undefined GoogleMapsError to GeocoderError.
Removed debug statements.

  • Participants
  • Parent commits c4c2edf

Comments (0)

Files changed (1)

File pygeocoder/pygeocoder.py

 		"""
 		encoded_params = urllib.urlencode(params)	 
 		url = self.GEOCODE_QUERY_URL + encoded_params
-		print url
+
 		request = urllib2.Request(url)
 		response = urllib2.urlopen(request)
-		print response
+
 		j = json.load(response)
 		if j['status'] != GeocoderError.G_GEO_OK:
-			raise GoogleMapsError(j['status'], url)
+			raise GeocoderError(j['status'], url)
 		return j['results']
 		
 	def geocode(self, address, sensor='false', bounds='', region='', language=''):