def post_processor(
response, operation, user_vars, listener, user_class, *args, **kwargs
) -> ReturnFromPostProcessor:
if hasattr(response, "status_code") and response.status_code == 200: # if isinstance(response, ResponseContextManager)
preloginId = response.json().get("success").get("sessionId")
preloginId = replace_first_six_chars(preloginId)
return ReturnFromPostProcessor(True, "UC21_login_mob_AUTH", {"preloginId":preloginId}, {})
elif hasattr(response, "status_code") and response.status_code >= 400:
return ReturnFromPostProcessor(False, None, {}, {})
else:
return ReturnFromPostProcessor(False, None, {}, {})
Причина: Ошибка пост-процессора (<module 'UC133_prelogin_AUTH_pp' from '/scripts/overload/UC133_prelogin_AUTH_pp.py'>): 'bool' object has no attribute 'get'