From 7f5ced5a873bafc1fe7e23f6bb575c2e76e5fd64 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Wed, 18 Dec 2024 12:23:01 +0500 Subject: [PATCH] Skip unreadable files during build --- build_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) 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