Fix a string type issue in the BitBucket too-many-logins handler.
Review Request #12046 — Created Feb. 7, 2022 and submitted
The change I made to more elegantly handle the too-many-logins error we
were seeing from BitBucket worked fine on Python 2.x, but had a string
types bug on Python 3. This change fixes that up.
Ran unit tests on all supported versions of Python.