1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-25 16:02:28 +01:00

Merged mainline.

This commit is contained in:
Robby Workman
2009-05-01 09:15:18 -05:00

View File

@@ -108,7 +108,7 @@ class ConfigManager(RawConfigParser):
try:
if not ret.startswith('0') or len(ret) == 1:
ret = int(ret)
except (ValueError, TypeError):
except (ValueError, TypeError, AttributeError):
ret = Noneify(ret)
# This is a workaround for a python-dbus issue on 64-bit systems.
if isinstance(ret, (int)):