| Mpaa added a comment. |
After the patch, exceptions entered via CLI are erased.
And if fix contains no 'exceptions' key:
fixes['example'] = {
'regex': True,
'msg': {
'_default':u'no summary specified',
},
'replacements': [
(r'\bword\b', u'two words'),
]
}user@pc:~/python/core {master}$ python scripts/replace.py -fix:example -pt:0 -exceptinsidetag:table -exceptinsidetag:template -exceptinsidetag:comment -multiline -prefixindex:"Page:Cuthbert Bede--Little Mr Bouncer and Tales of College Life.djvu" Retrieving 50 pages from wikisource:en. Traceback (most recent call last): File "scripts/replace.py", line 1177, in <module> main() File "scripts/replace.py", line 1168, in main bot.run() File "scripts/replace.py", line 720, in run if self.isTitleExcepted(page.title()): File "scripts/replace.py", line 591, in isTitleExcepted if 'title' in exceptions: TypeError: argument of type 'NoneType' is not iterable <type 'exceptions.TypeError'> CRITICAL: Closing network session.
TASK DETAIL
EMAIL PREFERENCES
To: Xqt, Mpaa
Cc: Mpaa, Nemo_bis, Xqt, Dalba, jayvdb, gerritbot, Aklapper, pywikibot-bugs-list, Basilicofresco, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Masti, Alchimista, Rxy
Cc: Mpaa, Nemo_bis, Xqt, Dalba, jayvdb, gerritbot, Aklapper, pywikibot-bugs-list, Basilicofresco, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
