def get_object_or_404(queryset, *filter_args, **filter_kwargs):
    "\n    Same as Django's standard shortcut, but make sure to also raise 404\n    if the filter_kwargs don't match the required types.\n    "
    try:
        return _get_object_or_404(queryset, *filter_args, **filter_kwargs)
    except (TypeError, ValueError, ValidationError):
        raise APIException(message='该对象不存在或者无访问权限')
Same as Django's standard shortcut, but make sure to also raise 404
if the filter_kwargs don't match the required types.
def get_object_or_404(queryset, *filter_args, **filter_kwargs):
    "\n    Same as Django's standard shortcut, but make sure to also raise 404\n    if the filter_kwargs don't match the required types.\n    "
    try:
        return _get_object_or_404(queryset, *filter_args, **filter_kwargs)
    except (TypeError, ValueError, ValidationError):
        raise APIException(message='该对象不存在或者无访问权限')