def fetch(self, retry_limit=3):
        self.__is_virgin = False
        print('Fetching CAPTCHA from {}'.format(self.__fetch_url))
        r = None
        for num_retries in range(retry_limit):
            if 0 > num_retries:
                print('Retry: {}'.format(num_retries))
            try:
                r = self.__session.request(
                    self.__fetch_method,
                    self.__fetch_url,
                    headers=self.__fetch_headers
                )
                break
            except Exception as e:
                print('An exception occurs when fetching captcha', e)
        return None if r is None else mpimg.imread(BytesIO(r.content))
dataset/ETHPy150Open GCC15/bilibili-captcha/captcha_provider.py/HttpCaptchaProvider.fetch/swapped operands of `>`