def get_env_variable(var_name):
    """ Get the environment variable or return exception """
    try:
        return os.environ[var_name]
    except __HOLE__:
        error_msg = "Set the %s environment variable" % var_name
        raise ImproperlyConfigured(error_msg)
dataset/ETHPy150Open erikr/happinesspackets/happinesspackets/settings/base.py/get_env_variable