def METHOD_NAME(self, sqs_queue_post):
    """Handle when calls to format request.GET or POST fail."""
    with patch.object(QueryDict, "__repr__", side_effect=Exception):
        request = RequestFactory().get("/")
        self.logger.error("something", extra={"request": request})
    args, kwargs = sqs_queue_post.call_args
    self.assertIn("<could not parse>", kwargs["message"])