This is only happens if it's pywikibot and bot password and it's wikitech. It logs in but returns an error like this:
ERROR: 172.16.6.30 != Dexbot after APISite.login() and successful ClientLoginManager.login()
Everything else works just fine.
(See T391346)