Skip to content

Commit

Permalink
fix: handle invalid GUI directories provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 5, 2024
1 parent 6c4bcbd commit b6b37b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ovos_bus_client/apis/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def _cache_gui_files(self):
if framework == "all":
LOG.warning(f"'all' is deprecated! ignoring path: {bpath}")
continue
if not os.path.isdir(bpath):
LOG.error(f"invalid '{framework}' resources directory: {bpath}")
continue
shutil.copytree(bpath, f"{output_path}/{framework}")
LOG.debug(f"Copied {self.skill_id} resources from {bpath} to {output_path}/{framework}")

Expand Down

0 comments on commit b6b37b8

Please sign in to comment.