def test_appid(appid): for i in range(0, 3): ssl_sock = https_manager.get_new_ssl() if not ssl_sock: return True try: return test_appid_exist(ssl_sock, appid) except Exception as e: xlog.exception("check_appid %s %r", appid, e) continue return False
def test_appid(appid): for i in range(0, 3): ssl_sock = https_manager.get_new_ssl() if not ssl_sock: return False try: return test_appid_exist(ssl_sock, appid) except Exception as e: xlog.exception("check_appid %s %r", appid, e) continue return False