From e0a7fb8966c5e45f82caefd0eb1e5b6180b57dea Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 5 Oct 2008 21:11:40 +0000
Subject: [PATCH] don't create None sub-option. Fixes #4379

---
 src/common/config.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/config.py b/src/common/config.py
index efb8387995..0a8cff983a 100644
--- a/src/common/config.py
+++ b/src/common/config.py
@@ -575,6 +575,8 @@ class Config:
 		if not self.__options_per_key.has_key(optname):
 #			raise RuntimeError, 'option %s does not exist' % optname
 			return
+		if not key:
+			return
 		dict = self.__options_per_key[optname][1]
 		if not dict.has_key(key):
 #			raise RuntimeError, '%s is not a key of %s' % (key, dict)
-- 
GitLab