git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49cb6bb
)
don't complain on empty config files
author
Felix Domke
<tmbinc@elitedvb.net>
Wed, 11 Oct 2006 22:32:53 +0000
(22:32 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Wed, 11 Oct 2006 22:32:53 +0000
(22:32 +0000)
lib/python/Components/config.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/config.py
b/lib/python/Components/config.py
index 38a231469b451daae65a730724cbcfd9be008de6..b255f55aa36600ef6c1018e3420ceb768cdf5c1d 100644
(file)
--- 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")