Skip to content

Commit

Permalink
docstr
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 5, 2024
1 parent 80a7df0 commit 83fcbac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ovos_plugin_manager/templates/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
except ImportError as _exc:

class HomescreenManager:
# delay exception until init is attempted, this may not necessarily be used
# also allows typing
"""Fallback class when ovos-gui is not installed.
Raises the original ImportError when instantiated to
provide clear error messaging while still allowing type hints to work.
"""

def __init__(self, *args, **kwargs):
LOG.error("you seem to be running GUIExtensions without ovos-gui installed...")
# raise the original ImportError
Expand Down

0 comments on commit 83fcbac

Please sign in to comment.