I guess it depends on the script, I know when Im writing tools I catch those errors myself and adjust my code depending on the response. keeping it in the bot class limits and can change the behavior of code depending on how it coded. Keep in mind that your working within a specific framework, while addressing the actual problems should be done in the scripts, depending on what the script is designed to do
On Sun, Jun 8, 2014 at 4:44 PM, Ricordisamoa ricordisamoa@openmailbox.org wrote:
I'm in the process of converting several scripts to use the framework's generic Bot class (gerrit:137334 https://gerrit.wikimedia.org/r/137334/, gerrit:137346 https://gerrit.wikimedia.org/r/137346/, gerrit:137354 https://gerrit.wikimedia.org/r/137354/, gerrit:138219 https://gerrit.wikimedia.org/r/138219/) which provides a useful .userPut() method. However, while most implementations in scripts try to catch possible exceptions (e.g. LockedPage, EditConflict, SpamfilterError), the 'standard' one does not. Should we add such a thing? Maybe turned off by default?
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l