Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-01-09 22:39:47 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-01-09 22:39:47 (GMT)
commit74e0041c0380064973c7301183e357eb07ff1404 (patch)
tree455020f7f62532c2955db1120bd247851d627619 /shell
parent83353f3c72684f493063246cb7b272d7eeca029f (diff)
#5884: don't crash on non-ascii characters in essids.
Diffstat (limited to 'shell')
-rw-r--r--shell/hardware/nminfo.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/shell/hardware/nminfo.py b/shell/hardware/nminfo.py
index c1a6326..3a93120 100644
--- a/shell/hardware/nminfo.py
+++ b/shell/hardware/nminfo.py
@@ -394,15 +394,13 @@ class NMInfo(object):
config.read(self._cfg_file)
networks = {}
for name in config.sections():
- if not isinstance(name, unicode):
- name = unicode(name)
- net = Network(name)
try:
+ net = Network(name)
net.read_from_config(config)
networks[name] = net
- except NetworkInvalidError, e:
- logging.debug("Error: invalid stored network config: %s" % e)
- del net
+ except Exception, e:
+ logging.error("Error when processing config for the network %s: %r" % (name, e))
+
del config
return networks