Better error message for get_all_actions() when docstrings are missing
This commit is contained in:
parent
c7ccedae95
commit
f490b9a8bd
1 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ class Action(NamedTuple):
|
|||
|
||||
@run_once
|
||||
def get_all_actions() -> Dict[str, List[Action]]:
|
||||
' test docstring '
|
||||
if not get_all_actions.__doc__:
|
||||
raise RuntimeError(
|
||||
'This build of kitty does not have docstrings, which'
|
||||
' are needed for get_all_actions(). If you are using a'
|
||||
' kitty binary build, setup KITTY_DEVELOP_FROM'
|
||||
' as described here: https://sw.kovidgoyal.net/kitty/build/'
|
||||
)
|
||||
|
||||
ans: Dict[str, List[Action]] = {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue