From 9c5bfb5384bd88b7e8f439f8d92df575d105ef68 Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 14 Nov 2024 17:05:07 +0000 Subject: [PATCH] log spam --- ovos_workshop/skills/ovos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index adeeba8..21fa7ad 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -2096,7 +2096,8 @@ def ask_selection(self, options: List[str], dialog: str = '', Returns: string: list element selected by user, or None """ - assert isinstance(options, list) + if not isinstance(options, list): + raise ValueError("invalid value for 'options', must be a list of strings") if not len(options): return None