TheGhostOfInky created this task. TheGhostOfInky added projects: Pywikibot-delete.py, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Reception123, Aklapper. Restricted Application added a project: affects-Miraheze.
TASK DESCRIPTION **Feature summary**: Adding a command line flag to the delete.py script that ignores errors when deleting pages and simply skips to the next in the batch **Use case(s)**: Often you're deleting a large number of pages or files from a wiki and due to a backend issue, a small number don't suceed, total halting of the script's execution is very frustrating in this scenario and requires the operator to babysit the script and manually restart it, an option to ignore these errors similar to how other scripts ignore write page errors would be welcome. **Benefits**: More independent usage of the delete.py script in wikis with minor backend issues. **Personal example:** I am an administrator of a Miraheze wiki and recently I was doing a cleanup of over 7600 unused files ahead of a migration and a small number of them did not delete successfully due to an unknown error in the swift storage backend, as a temporary workaround I wrapped the call to `self.current_page.delete` in a try/except block and simply logged the exception, but I understand this is not a good permanent solution as some people don't desire this behaviour, so implementing a proper flag would be ideal. TASK DETAIL https://phabricator.wikimedia.org/T342948 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: TheGhostOfInky Cc: Aklapper, Reception123, pywikibot-bugs-list, #pywikibot-delete.py, #pywikibot, TheGhostOfInky, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
