List of steps to reproduce (step by step, including full links if applicable):
import pywikibot from pywikibot import proofreadpage as pp site = pywikibot.Site('en', 'wikisource') page = pp.IndexPage(site, 'Index:Pywikibot_test_page_2') page.save(summary='test edit')
What happens?:
~/python/core/pywikibot/proofreadpage.py in save(self, *args, **kwargs) 858 """ 859 if not self.has_valid_content(): --> 860 raise OtherPageSaveError( 861 self, 'An IndexPage must consist only of a single call to ' 862 '{{%s}}.' % self.INDEX_TEMPLATE) OtherPageSaveError: Edit to page [[Index:Pywikibot test page 2]] failed: An IndexPage must consist only of a single call to {{:MediaWiki:Proofreadpage_index_template}}.
What should have happened instead?:
Page is saved without errors.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
Pywikibot: [ssh] pywikibot-core.git (48e05cf, g15783, 2022/01/09, 12:47:08, OUTDATED) Release version: 7.0.0.dev0 setuptools version: 58.0.4 mwparserfromhell version: 0.6.2 wikitextparser version: n/a requests version: 2.27.1 Python: 3.8.3 (default, Jul 2 2020, 16:21:59) [GCC 7.3.0]