https://bugzilla.wikimedia.org/show_bug.cgi?id=60381

Merlijn van Deen <valhall...@arctus.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
            Summary|Return of the               |Page with empty title
                   |AttributeError: 'Page'      |raises "AttributeError:
                   |object has no attribute     |'Page' object has no
                   |'_isredir'                  |attribute '_isredir'" on
                   |                            |.get()
     Ever confirmed|0                           |1

--- Comment #2 from Merlijn van Deen <valhall...@arctus.nl> ---
>>> page = pywikibot.Page(site)

I think this should raise an exception, as it creates a Page object without
title:

>>> page
Page()


On the other hand, it's equivalent to
>>> page = pywikibot.Page(site, '')

which should be the main page.


In any case, the correct way to do what you want is
]

>>> page = pywikibot.Page(site, "Cat")
>>> page.get()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to