Framawiki created this task.
Framawiki added projects: Pywikibot-core, Pywikibot-interwiki.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

As reported on IRC:

<dragfyre> I’m running pywikibot on a third-party wiki, and I suspect I have a problem with namespaces. Trying to run the Interwiki script results in the following error:
<dragfyre> File "./scripts/interwiki.py", line 2370, in page_empty_check
<dragfyre>     if page.namespace().content:
<dragfyre> AttributeError: 'int' object has no attribute 'content'
<dragfyre> Any thoughts on how to resolve this?

Looking at https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html?highlight=namespace#pywikibot.site.Namespace class pywikibot.site.Namespace hasen't any "content" related property.


TASK DETAIL
https://phabricator.wikimedia.org/T203491

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Framawiki
Cc: Aklapper, pywikibot-bugs-list, Dragfyre, Xqt, Framawiki, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Thibaut120094, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to