Last modified: 2013-10-24 22:29:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57216, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55216 - interwiki.py crashes on "Shakti: The Power"
interwiki.py crashes on "Shakti: The Power"
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:44 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-24 22:29 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:44:55 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1404/
Reported by: ganz-ru
Created on: 2012-02-08 21:27:31
Subject: interwiki.py crashes on "Shakti: The Power"
Original description:
interwiki.py recognizes the first word of title of http://en.wikipedia.org/wiki/Shakti:\_The\_Power as incorrect interlaguage preffix and crashes.

Traceback \(most recent call last\):
File "interwiki.py", line 2573, in <module>
main\(\)
File "interwiki.py", line 2547, in main
bot.run\(\)
File "interwiki.py", line 2287, in run
self.queryStep\(\)
File "interwiki.py", line 2260, in queryStep
self.oneQuery\(\)
File "interwiki.py", line 2256, in oneQuery
subject.batchLoaded\(self\)
File "interwiki.py", line 1255, in batchLoaded
redirectTargetPage = page.getRedirectTarget\(\)
File "/usr/pywikipedia/wikipedia.py", line 2612, in getRedirectTarget
return Page\(self.site\(\), target\)
File "/usr/pywikipedia/wikipedia.py", line 374, in \_\_init\_\_
% \(title, self.\_site, familyName\)\)
pywikibot.exceptions.NoPage: Shakti: The Power is not a local page on wikipedia:sh, and the shakti family is
not supported by PyWikipediaBot\!

version.py:

Pywikipedia \[http\] trunk/pywikipedia \(r9876, 2012/02/08, 21:07:16\)
Python 2.7.2+ \(default, Oct  4 2011, 20:03:08\)
\[GCC 4.6.1\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
Comment 1 Mpaa 2013-10-16 22:18:39 UTC
Unable to reproduce on [[en:Shakti: The Power]] or [[en:Shakti - The Power]] (is redirect to [[en:Shakti: The Power]])
Comment 2 Merlijn van Deen (test) 2013-10-24 22:29:32 UTC
This 'family' was listed in Family.known_families, but was removed in in ed8493d8e007c4aec9a6c9652b35f253a2b0df1d:

commit ed8493d8e007c4aec9a6c9652b35f253a2b0df1d
Author: Amir Sarabadani <amir@users.mediawiki.org>
Date:   Fri Feb 8 14:31:38 2013 +0000

    removing "shakti" as a known family per bug #3603779

    https://mediawiki.org/wiki/Special:Code/pywikipedia/11054

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links