- # Create a mock response for demonstration purposes, indicating the report is accepted.
- response = call_result.GetBaseReport(
- status=GenericDeviceModelStatusType.accepted
- )
-
- logging.info(f"Sending GetBaseReport response: {response}")
- return response
- except Exception as e:
- # Log any errors that occur while handling the GetBaseReport request.
- logging.error(f"Error handling GetBaseReport request: {e}", exc_info=True)
- # Return a rejected status in case of error.
- return call_result.GetBaseReport(
- status=GenericDeviceModelStatusType.rejected
- )