Page MenuHomePhabricator

Unify Http Exceptions across pywikibot?
Open, LowPublic

Description

Sometimes, requests.Exceptions are checked directly and then converted outside http.py (e.g. here, here or here), while some exceptions are converted in http.error_handling_callback().

A review should be carried out and a general guideline defined:

  • is it OK to handle requests.Exceptions directly?
  • shall they be filtered and converted centrally in htt.fetch()?
  • ...