RawConfigParser.getboolean raise AttributeError in case of missing option
This commit is contained in:
1 parent
029284816b
commit
87e0c4dea0
1 file changed
+2
-1
+2
-1
@@ -89,7 +89,8 @@ class TrytonConfigParser(ConfigParser.RawConfigParser):
|
||||
try:
|
||||
return ConfigParser.RawConfigParser.getboolean(
|
||||
self, section, option)
|
||||
except (ConfigParser.NoOptionError, ConfigParser.NoSectionError):
|
||||
except (ConfigParser.NoOptionError, ConfigParser.NoSectionError,
|
||||
AttributeError):
|
||||
return default
|
||||
|
||||
config = TrytonConfigParser()
|
||||
Reference in new issue
Block a user