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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user