Fa un parell de dies que em dona un error perquè es veu que s'embulla amb les redireccions de les categories:
Traceback (most recent call last):
File "discussions.py", line 71, in <module>
text=pag.get()
File "/data/project/shared/pywikibot/stable/pywikibot/page/__init__.py", line 442, in get
self._getInternals()
File "/data/project/shared/pywikibot/stable/pywikibot/page/__init__.py", line 479, in _getInternals
raise self._getexception
pywikibot.exceptions.IsRedirectPageError: Page ca:Discussió:Batalla de Kíev (2022) is a redirect page.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "discussions.py", line 72, in <module>
except pywikibot.IsRedirectPage:
AttributeError: module 'pywikibot' has no attribute 'IsRedirectPage'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
@Pere prlpz: Sabries dir-me què ha de canviar per evitar aquest error?
Gràcies.