[Pywikipedia-l] SVN: [4822] trunk/pywikipedia/wikipedia.py

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Sun Jan 6 15:19:02 UTC 2008


Revision: 4822
Author:   rotem
Date:     2008-01-06 15:19:02 +0000 (Sun, 06 Jan 2008)

Log Message:
-----------
Disable exception about obsolete wikis for the moment - interwiki links problems (e.g. bug 1864919).

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-01-06 12:49:18 UTC (rev 4821)
+++ trunk/pywikipedia/wikipedia.py	2008-01-06 15:19:02 UTC (rev 4822)
@@ -3667,7 +3667,9 @@
                 self.lang = self.family.obsolete[self.lang]
             else:
                 # no such language anymore
-                raise KeyError("Language %s in family %s is obsolete" % (self.lang, self.family.name))
+                # disable exception for the moment - interwiki links problems
+                # raise KeyError("Language %s in family %s is obsolete" % (self.lang, self.family.name))
+                pass
 
         if self.lang not in self.languages():
             if self.lang == 'zh-classic' and 'zh-classical' in self.languages():





More information about the Pywikipedia-l mailing list