Revision: 8645 Author: xqt Date: 2010-10-12 22:16:34 +0000 (Tue, 12 Oct 2010)
Log Message: ----------- follow up bugfix for r8613.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-10-12 15:41:54 UTC (rev 8644) +++ trunk/pywikipedia/wikipedia.py 2010-10-12 22:16:34 UTC (rev 8645) @@ -1190,8 +1190,11 @@ """ if not hasattr(self, "_isDisambig"): if not hasattr(self._site, "_disambigtemplates"): - default = set(self._site.family.disambig('_default')) try: + default = set(self._site.family.disambig('_default')) + except KeyError: + default = set(u'Disambig') + try: distl = self._site.family.disambig(self._site.lang, fallback=False) except KeyError:
pywikipedia-svn@lists.wikimedia.org