Xqt created this task. Xqt added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION **Problem** Pywikibot defines its own `TimeoutError `exception in `pywikibot.exceptions`: However, Python already provides the built-in `TimeoutError` exception. Using the same name can lead to ambiguity when reading code or writing exception handlers. Without additional context, it is unclear whether this refers to the built-in exception or `pywikibot.exceptions.TimeoutError`. `exception.TimeoutError` was introduced with rPWBC956a903b <https://phabricator.wikimedia.org/rPWBC956a903bb3aa2b5906a73c20e675baee4976ad82> (Pywikibot 3.0.20200508) but `api.TimeoutError` was introduced with a very first Pywikibot 2 release with rPWBCdcff6d3e <https://phabricator.wikimedia.org/rPWBCdcff6d3ebda23ab0c2e6b5c4a6aa30cd8f57e6a5>. **Proposal** Rename` pywikibot.exceptions.TimeoutError` to a more specific name, for example: - RequestTimeoutError - ApiTimeoutError TASK DETAIL https://phabricator.wikimedia.org/T431174 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
