1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-07 14:24:22 +01:00

branches/experimental:

- Fix crash in configmanager.
This commit is contained in:
imdano
2008-09-20 08:02:06 +00:00
parent ccbd6ad392
commit 244b419f3f

View File

@@ -85,7 +85,7 @@ class ConfigManager(ConfigParser):
# Try to intelligently handle the type of the return value.
try:
ret = int(ret)
except ValueError, TypeError:
except (ValueError, TypeError):
ret = stringToNone(ret)
return ret