diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2011-03-25 19:58:57 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2011-03-29 15:43:58 +0200 |
| commit | 2c5e4d6c412c1988b32cb7dbede988bc9dfb815d (patch) | |
| tree | bee1e985d0b73ccd4ac6f541110bb9fea96969bf /lib/python/Components/config.py | |
| parent | 7f070068aa203cb95252b641b1c0cc5308a604ee (diff) | |
| download | enigma2-2c5e4d6c412c1988b32cb7dbede988bc9dfb815d.tar.gz enigma2-2c5e4d6c412c1988b32cb7dbede988bc9dfb815d.zip | |
fix some crashes during settings wizard
Diffstat (limited to 'lib/python/Components/config.py')
| -rwxr-xr-x | lib/python/Components/config.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 6e560857..5507cae9 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1661,9 +1661,12 @@ class Config(ConfigSubsection): def saveToFile(self, filename): text = self.pickle() - f = open(filename, "w") - f.write(text) - f.close() + try: + f = open(filename, "w") + f.write(text) + f.close() + except IOError: + print "Config: Couldn't write %s" % filename def loadFromFile(self, filename, base_file=False): f = open(filename, "r") |
