Revision: 4398 Author: btongminh Date: 2007-10-02 12:36:15 +0000 (Tue, 02 Oct 2007)
Log Message: ----------- Quick hack to deal with pa-us
Modified Paths: -------------- trunk/pywikipedia/commonsdelinker/checkusage.py
Modified: trunk/pywikipedia/commonsdelinker/checkusage.py =================================================================== --- trunk/pywikipedia/commonsdelinker/checkusage.py 2007-10-01 18:09:46 UTC (rev 4397) +++ trunk/pywikipedia/commonsdelinker/checkusage.py 2007-10-02 12:36:15 UTC (rev 4398) @@ -263,11 +263,12 @@ self.servers[server] = self.connect_mysql(mysql_host_prefix + str(server)) # FIXME: wikimediafoundation! + # TODO: This is one big mess try: lang, fam = family(domain) if fam not in self.known_families: self.known_families[fam] = wikipedia.Family(fam, fatal = False) - except (RuntimeError, ValueError): + except (RuntimeError, ValueError, SyntaxError): self.unknown_families.append(domain) else: self.sites[dbname] = (lang, fam)