Commit b98220ea authored by Joshua Bachmeier's avatar Joshua Bachmeier

Truly fix missing parameter when no default is provided

parent 2b36afae
......@@ -102,10 +102,11 @@ class Question(Questionnaire):
default -- The default value / the input type
**kwargs -- Any additional keyword arguments are passed to Questionaire.__init__
"""
defaults = {}
if default:
kwargs['defaults'] = {name: default}
defaults[name] = default
super().__init__(questions={name: text}, **kwargs)
super().__init__(questions={name: text}, defaults=defaults, **kwargs)
def raise_question(*args, **kwargs):
"""Convenice function needed in places where an expression is required.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment