From 6f6514f64e4c769da57acd9c6070bc658c918fe8 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 8 Oct 2006 22:46:57 +0000 Subject: [PATCH] check ConfigPIN default --- lib/python/Components/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 343632db..7ab7814b 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -439,6 +439,7 @@ class ConfigInteger(ConfigSequence): class ConfigPIN(ConfigSequence): def __init__(self, default, len = 4, censor = ""): + assert isinstance(default, int), "ConfigPIN default must be an integer" ConfigSequence.__init__(self, seperator = ":", limits = [(0, (10**len)-1)], censor_char = censor, default = [default]) class ConfigFloat(ConfigSequence): -- 2.30.2