Skip to content

Commit

Permalink
Merge pull request IITC-CE#791 from modos189/fix/build-with-unreadabl…
Browse files Browse the repository at this point in the history
…e-files

Skip unreadable files during build
  • Loading branch information
modos189 authored Dec 24, 2024
2 parents c64ca0e + 09d5833 commit 7d30f9c
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"{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 7d30f9c

Please sign in to comment.