<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_cached_object_or_404(model, timeout=CACHE_TIMEOUT, **kwargs):
 """ Shortcut that will raise Http404 if there is no object matching the query see get_cached_object for params description """

    try:
        return get_cached_object(model, timeout=timeout, **kwargs)
    except ObjectDoesNotExist, e:
        raise Http404('Reason: %s' % str(e))