diff --git a/build_plugin.py b/build_plugin.py index 25e9ab140..ddc382646 100755 --- a/build_plugin.py +++ b/build_plugin.py @@ -176,6 +176,10 @@ def process_file(source, out_dir, dist_path=None, deps_list=None): meta, script = readtext(source).split('\n\n', 1) except ValueError: raise Exception(f'{source}: wrong input: empty line expected after metablock') + except (OSError, IOError) as e: + print(f"Error reading {source}: {type(e).__name__}: {e}") + return + plugin_name = source.stem meta, is_main = fill_meta(meta, plugin_name, dist_path) settings.plugin_id = plugin_name