Skip to content

Commit

Permalink
fix: image urls
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 15, 2024
1 parent 0ad2a68 commit 82d0fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovos_bus_client/apis/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def show_image(self, url: str, caption: Optional[str] = None,
False: 'Default' always show animations.
"""
url = self._resolve_url(url)
if not os.path.isfile(url):
if not url.startswith("http") and not os.path.isfile(url):
LOG.error(f"Provided image file does not exist! '{url}'")
return
self["image"] = url
Expand Down Expand Up @@ -633,7 +633,7 @@ def show_animated_image(self, url: str, caption: Optional[str] = None,
False: 'Default' always show animations.
"""
url = self._resolve_url(url)
if not os.path.isfile(url):
if not url.startswith("http") and not os.path.isfile(url):
LOG.error(f"Provided image file does not exist! '{url}'")
return
self["image"] = url
Expand Down

0 comments on commit 82d0fb7

Please sign in to comment.