XZise added a comment.
One quick work around would be to do `my_site.tokens._tokens.clear()` which removes all cached tokens. It's not pretty but until there is a sensible fix that should work.
TASK DETAIL https://phabricator.wikimedia.org/T61678
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Twp, NiharikaKohli, XZise, Sitic, Qgil, Daniel_Mietchen, jayvdb, valhallasw, Ricordisamoa, 555, Multichill, Ladsgroup, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org