Skip to content

Commit

Permalink
better compat
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 20, 2024
1 parent af59722 commit 346ff66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ovos_bus_client/apis/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,13 @@ def _normalize_page_name(page_name: str) -> str:
@return: normalized string name (`.qml` removed for other GUI support)
"""
if isfile(page_name):
LOG.error("GUI resources should specify a resource name and "
"not a file path.")
return page_name
raise ValueError("GUI resources should specify a resource name and not a file path.")
file, ext = splitext(page_name)
if ext == ".qml":
LOG.error("GUI resources should exclude gui-specific file "
f"extensions. This call should probably pass "
f"`{file}`, instead of `{page_name}`")
return file

return page_name

# base gui interactions
Expand Down

0 comments on commit 346ff66

Please sign in to comment.