From 31bbc026fde7c4f31f84afbd68b66391da7079d9 Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Wed, 20 Jul 2022 11:24:42 +0200 Subject: [PATCH] Don't restrict choices if there's no choices specified --- src/utils/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/config.py b/src/utils/config.py index 56f632b09..e4e353360 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -703,7 +703,8 @@ class Question: self.default = question.get("default", None) self.optional = question.get("optional", False) self.visible = question.get("visible", None) - self.choices = question.get("choices", []) + # Don't restrict choices if there's none specified + self.choices = question.get("choices", None) self.pattern = question.get("pattern", self.pattern) self.ask = question.get("ask", {"en": self.name}) self.help = question.get("help")