def get_token_from_authorization(self, authorization):
        try:
            scheme, token = authorization.split()
        except __HOLE__:
            raise ApiError(401, {'code': 'invalid_authorization'})

        if scheme != 'Bearer':
            raise ApiError(401, {'code': 'invalid_authorization.scheme'})

        return token
dataset/ETHPy150Open 4Catalyzer/flask-resty/flask_resty/jwt.py/JwtAuthentication.get_token_from_authorization