Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[cleanup] Remove BadTitle exception | pywikibot/core | master | +2 -10 | |
Removed the BadTitle Exception from certain files | pywikibot/core | master | +23 -50 |
Related Objects
Event Timeline
I would like to tackle this task and I would like to ask if I have to remove the BadTitle exception from all the files listed in the above link, if Yes what should go there after its removal?
@Homeboy_445: Just remove the exception handling arround this exception e.g.
try: page = pywikibot.Page(site, title) except pywikibot.BadTitle: # The interwiki was incorrect break except OtherException do_whatever()
should become
try: page = pywikibot.Page(site, title) except OtherException do_whatever()
@Xqt Just one more thing! Do I have to alter the same for every exception or just this one. Thanks for your help!
This is only a sample but you should change the real code accordingly. Fix one file after another.
Change 642031 had a related patch set uploaded (by Xqt; owner: Homeboy 445):
[pywikibot/core@master] Removed the BadTitle Exception from certain files
Change 642031 merged by Xqt:
[pywikibot/core@master] Removed the BadTitle Exception from certain files
Change 676607 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [cleanup] Remove BadTitle exception
Change 676607 merged by jenkins-bot:
[pywikibot/core@master] [cleanup] Remove BadTitle exception