diff --git a/contrib/pyln-client/pyln/client/plugin.py b/contrib/pyln-client/pyln/client/plugin.py index 5ed9ed0da..dbc1cbdd0 100644 --- a/contrib/pyln-client/pyln/client/plugin.py +++ b/contrib/pyln-client/pyln/client/plugin.py @@ -250,6 +250,9 @@ class Plugin(object): "Name {} is already used by another option".format(name) ) + if opt_type not in ["string", "int", "bool"]: + raise ValueError('{} not in supported type set (string, int, bool)') + self.options[name] = { 'name': name, 'default': default,