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