mirror of
https://github.com/gryf/wicd.git
synced 2025-12-23 22:52:33 +01:00
Also catch AttributeErrors when guessing data types
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user