Skip to content

Commit

Permalink
Skip unreadable files during build
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Dec 18, 2024
1 parent 86900f9 commit 7f5ced5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f5ced5

Please sign in to comment.