def format_repr(obj, max_len=120):
    """
    Return the representation of an object for display

    :param obj: any object to represent
    :param max_len: maximum length of representation
    :type max_len: int
    :return: formatted object representation
    """
    try:
        obj_repr = repr(obj)
        if len(obj_repr) > max_len:
            return obj_repr[:max_len - 3] + '...'
        return obj_repr
    except Exception:
        return '<not representable>'
