Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-archivebot.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue**:
archivebot fails if template fields are using **d**ecimal 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
<https://phabricator.wikimedia.org/rPWBC1225e3d99527243f23036d115c40889ccabedf18>
TASK DETAIL
https://phabricator.wikimedia.org/T313692
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, MJL, Viztor, Wenyi, Tbscho, MayS, Mdupont,
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista, MarcoAurelio
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]