def get_queryset_or_404(queryset, kwargs):
try:<EOL><INDENT>return queryset.get(**kwargs)<EOL><DEDENT>except Exception:<EOL><INDENT>raise Http404(_('<STR_LIT>'))<EOL><DEDENT>
Checks if object returned by queryset exists