diff --git a/plugin-template b/plugin-template index 623f0d5a..808000c1 100755 --- a/plugin-template +++ b/plugin-template @@ -414,7 +414,10 @@ def write_template_section(config, name, plugin_root_dir, verbose=False): black_paths = filter( lambda x: os.path.exists(os.path.join(plugin_root_dir, x)), black_paths ) - subprocess.run(["black", "--quiet"] + list(black_paths), cwd=plugin_root_dir) + try: + subprocess.run(["black", "--quiet"] + list(black_paths), cwd=plugin_root_dir) + except FileNotFoundError: + pass print(f"Section: {name} \n templated: {files_templated}\n copied: {files_copied}") return 0 diff --git a/requirements.txt b/requirements.txt index abcb9934..e81da93f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +black jinja2 pyyaml requests~=2.32.3