logger.debug("Setting last_error_details='%s' (json,error)", error["json"]["msg"])
_set_data("last_status_code" , domain, error["status_code"])
_set_data("last_error_details", domain, error["json"]["msg"] if error["json"]["msg"] != "" else None)
+ elif "json" in error and "error" in error["json"] and "error_message" in error["json"]:
+ logger.debug("Setting last_error_details='%s' (json,error)", error["json"]["error_message"])
+ _set_data("last_status_code" , domain, error["status_code"])
+ _set_data("last_error_details", domain, error["json"]["error_message"] if error["json"]["error_message"] != "" else None)
elif "json" in error and "error" in error["json"] and "message" in error["json"]["error"]:
logger.debug("Setting last_error_details='%s' (json,error)", error["json"]["error"]["message"])
_set_data("last_status_code" , domain, error["status_code"])