import functools
import re
from typing import Dict, Sequence

import looker_sdk
from looker_sdk import methods, models, error


LOOKER_GROUP_PREFIX = "Looker_Hack: "
# simple caching mechanism until we have a true class for retaining these IDs
HACKATHON_ATTR_ID = None
HACKATHON_ROLE = None


def try_to(func):
    """Wrap API calls in try/except