http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11654
Revision: 11654 Author: legoktm Date: 2013-06-16 08:32:31 +0000 (Sun, 16 Jun 2013) Log Message: ----------- Bugfix for r11653, "type" parameter might not always be set
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2013-06-16 07:49:27 UTC (rev 11653) +++ branches/rewrite/pywikibot/data/api.py 2013-06-16 08:32:31 UTC (rev 11654) @@ -976,7 +976,7 @@ for co in pagedict['coordinates']: coord = pywikibot.Coordinate(lat=co['lat'], lon=co['lon'], - typ=co['type'], + typ=co.get('type', ''), name=co['name'], dim=co['dim'], globe=co.get('globe', 'earth'), # See [[gerrit:67886]]
pywikipedia-svn@lists.wikimedia.org