Revision: 8795 Author: xqt Date: 2010-12-26 08:55:50 +0000 (Sun, 26 Dec 2010) Log Message: ----------- minor fix
Modified Paths: -------------- trunk/pywikipedia/generate_family_file.py
Modified: trunk/pywikipedia/generate_family_file.py =================================================================== --- trunk/pywikipedia/generate_family_file.py 2010-12-26 08:46:15 UTC (rev 8794) +++ trunk/pywikipedia/generate_family_file.py 2010-12-26 08:55:50 UTC (rev 8795) @@ -76,7 +76,7 @@ try: iw = json.load(urlopen(w.api + "?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local&format=json")) if 'error' in iw: - raise RuntimeError ('%s/n%s' % (iw['error']['code'], iw['error']['info'])) + raise RuntimeError ('%s - %s' % (iw['error']['code'], iw['error']['info'])) self.langs = [wiki for wiki in iw['query']['interwikimap'] if u'language' in wiki] print u' '.join(sorted([wiki[u'prefix'] for wiki in self.langs])) except HTTPError, e: