[Pywikibot-commits] [Gerrit] (assertion fix) TypeError while raising APIError - change (pywikibot/core)