Strainu added a comment.

  Thank you for your suggestions @Xqt abd @matej_suchanek . Unfortunately I am 
still reproducing the issue after deleting all __pycache__ and apicache-py3 
folders, using the simplified example (see below). Have you tried with the same 
commit (28e31f98dcc2b152fde16385172a49f721394ed3 
<https://phabricator.wikimedia.org/rPWBC28e31f98dcc2b152fde16385172a49f721394ed3>)?
  
    >>> import pywikibot
    >>> site = pywikibot.Site('ro')
    >>> page = pywikibot.Page(site, 'Cod:SIRUTA:136')
    >>> page.exists()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/andrei/pywikibot-core/pywikibot/page/__init__.py", line 717, 
in exists
        raise InvalidPageError(self)
    pywikibot.exceptions.InvalidPageError: Page [[ro:Cod:SIRUTA:136]] is 
invalid.
    >>> page.isRedirectPage()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/andrei/pywikibot-core/pywikibot/page/__init__.py", line 730, 
in isRedirectPage
        return self.site.page_isredirect(self)
      File "/home/andrei/pywikibot-core/pywikibot/site/_apisite.py", line 1194, 
in page_isredirect
        self.loadpageinfo(page)
      File "/home/andrei/pywikibot-core/pywikibot/site/_apisite.py", line 1107, 
in loadpageinfo
        self._update_page(page, query)
      File "/home/andrei/pywikibot-core/pywikibot/site/_apisite.py", line 1081, 
in _update_page
        for pageitem in query:
      File "/home/andrei/pywikibot-core/pywikibot/data/api.py", line 2740, in 
__iter__
        yield from super().__iter__()
      File "/home/andrei/pywikibot-core/pywikibot/data/api.py", line 2582, in 
__iter__
        prev_limit, new_limit, previous_result_had_data)
      File "/home/andrei/pywikibot-core/pywikibot/data/api.py", line 2507, in 
_handle_query_limit
        self.request[self.prefix + 'limit'] = str(new_limit)
    AttributeError: 'PropertyGenerator' object has no attribute 'prefix'

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

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

To: Strainu
Cc: matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, Strainu, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to