aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-11 22:32:53 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-11 22:32:53 +0000
commit5f1f993d0e82bb8f5471bf050e97077f67c3d853 (patch)
tree54774036c059ac49e0ca88170583f055c9f297fe /lib/python/Components
parent49cb6bb23b835e5d7e44fd8298fc646d05576500 (diff)
downloadenigma2-5f1f993d0e82bb8f5471bf050e97077f67c3d853.tar.gz
enigma2-5f1f993d0e82bb8f5471bf050e97077f67c3d853.zip
don't complain on empty config files
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 38a23146..b255f55a 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -803,7 +803,8 @@ class Config(ConfigSubsection):
# we inherit from ConfigSubsection, so ...
#object.__setattr__(self, "saved_value", tree["config"])
- self.setSavedValue(tree["config"])
+ if "config" in tree:
+ self.setSavedValue(tree["config"])
def saveToFile(self, filename):
f = open(filename, "w")