From 16801ad1b25f14e06c80b5f90cc1c91e32ae9ff3 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 16 Apr 2013 11:51:48 +0200 Subject: [PATCH] SubConfig: first argument must be a OD --- tiramisu/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tiramisu/config.py b/tiramisu/config.py index d4bb430..76eafa9 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -42,6 +42,8 @@ class SubConfig(object): :type context: `Config` """ # main option description + if not isinstance(descr, OptionDescription): + raise ValueError(_('descr must be an optiondescription, not {0}').format(type(descr))) self._cfgimpl_descr = descr # sub option descriptions self._cfgimpl_context = context