We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduce:
>>> import geocoder >>> g = geocoder.geolytica('Winfield, BC') ... /data/virtualenvs/lca-tools/lib/python3.7/site-packages/geocoder/geolytica.py in street(self) 39 @property 40 def street(self): ---> 41 return self._standard.get('staddress', '').strip() 42 43 @property AttributeError: 'dict' object has no attribute 'strip'
This is because geolytica apparently returns empty dicts for staddress and stnumber if not present, and not empty strings.
staddress
stnumber
Solution: either catch the AttributeError or modify the code to meet expectations.
The text was updated successfully, but these errors were encountered:
sorry I am still learning how to do pull requests
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Reproduce:
This is because geolytica apparently returns empty dicts for
staddress
andstnumber
if not present, and not empty strings.Solution: either catch the AttributeError or modify the code to meet expectations.
The text was updated successfully, but these errors were encountered: