1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-28 19:25:45 +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 to intelligently handle the type of the return value.
try: try:
ret = int(ret) ret = int(ret)
except ValueError, TypeError: except (ValueError, TypeError):
ret = stringToNone(ret) ret = stringToNone(ret)
return ret return ret