Steps to replicate the issue:
archivebot fails if template fields are using decimal field types like %(counter)d.
What happens?:
D:\pwb\GIT\core>pwb archivebot User:MiszaBot/config -simulate -lang:simple Fetching template transclusions... Processing [[simple:Talk:Main Page]] 15 thread(s) found on [[simple:Talk:Main Page]] Looking for: {{User:MiszaBot/config}} in [[simple:Talk:Main Page]] Processing 15 threads Talk:Main Page/Archive%(counter)d {'counter': '5', 'year': '2021', 'isoyear': '2021', 'isoweek': '26', 'semester': '1', 'quarter': '2', 'month': '6', 'monthname': 'June', 'monthnameshort': 'Jun', 'week': '26'} ERROR: Error occurred while processing page [[simple:Talk:Main Page]] Traceback (most recent call last): File ".\scripts\archivebot.py", line 804, in main archiver.run() File ".\scripts\archivebot.py", line 657, in run whys = self.analyze_page() File ".\scripts\archivebot.py", line 586, in analyze_page key = pattern % params TypeError: %d format: a real number is required, not strProcessing [[simple:Talk:X64]] 2 thread(s) found on [[simple:Talk:X64]] Looking for: {{User:MiszaBot/config}} in [[simple:Talk:X64]] Traceback (most recent call last): ... KeyboardInterrupt CRITICAL: Exiting due to uncaught exception <class 'KeyboardInterrupt'>
What should have happened instead?:
Software version (skip for WMF-hosted wikis like Wikipedia):
Since Pywikibot 7.5 due to rPWBC1225e3d99