huwikinews Traceback (most recent call last): File "pywikibot-core/pwb.py", line 262, in <module> if not main(): File "pywikibot-core/pwb.py", line 255, in main run_python_file(filename, [filename] + args, argvu, file_package) File "pywikibot-core/pwb.py", line 121, in run_python_file main_mod.__dict__) File "test.py", line 14, in <module> if p.exists(): File "pywikibot-core/pywikibot/page.py", line 803, in exists return self.site.page_exists(self) File "pywikibot-core/pywikibot/site.py", line 907, in __getattr__ % (self.__class__.__name__, attr)) AttributeError: RemovedSite instance has no attribute 'page_exists' <type 'exceptions.AttributeError'> CRITICAL: Closing network session.
with something like
p = pwb.Page(pwb.Site('hu', 'wikinews'), 'Category:Published') print(p.exists())
same error for .text AttributeError: RemovedSite instance has no attribute 'loadrevisions' and others
- Errors are not handled, it should be something else than AttributeError
- The wiki is in read-only mode, so PWB should be able to read it. Currently page.text and others gives unexpected errors