mirror of
https://github.com/gryf/wicd.git
synced 2026-01-02 20:04:16 +01:00
branches/experimental:
- A bunch of documentation additions/updates. - Minor refactoring. - Fix catching wrong exception in netentry.py
This commit is contained in:
@@ -813,6 +813,7 @@ class WirelessNetworkEntry(NetworkEntry):
|
||||
self.wifides = self.connect("destroy", self.destroy_called)
|
||||
|
||||
def _escape(self, val):
|
||||
""" Escapes special characters so they're displayed correctly. """
|
||||
return val.replace("&", "&").replace("<", "<").\
|
||||
replace(">",">").replace("'", "'").replace('"', """)
|
||||
|
||||
@@ -930,7 +931,7 @@ class WirelessNetworkEntry(NetworkEntry):
|
||||
misc.LaunchAndWait([sudo_prog, msg_flag, msg,
|
||||
wpath.lib + "configscript.py",
|
||||
str(self.networkID), "wireless"])
|
||||
except IOError:
|
||||
except misc.WicdError:
|
||||
error(None, "Could not find a graphical sudo program." + \
|
||||
" Script editor could no be launched.")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user