def template_not_found_message(template):
    message = ["Template not found: {0}".format(template),
            "Use the `--template` option to specify a template."]
    try:
        from pkg_resources import resource_listdir
        message.extend(["The following templates are built-in:"] +
                resource_listdir('dayone_export', 'templates'))
    except __HOLE__:
        pass
    return '\n'.join(message)
dataset/ETHPy150Open nathangrigg/dayone_export/dayone_export/cli.py/template_not_found_message