Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e5cf70

Browse files
committed
minor fix
1 parent de94bee commit 9e5cf70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/parse/configfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def configFileProxy(section, option, boolean=False, integer=False):
3232

3333
if config.has_option(section, option):
3434
if boolean:
35-
value = config.getboolean(section, option)
35+
value = config.getboolean(section, option) if config.get(section, option) else False
3636
elif integer:
37-
value = config.getint(section, option)
37+
value = config.getint(section, option) if config.get(section, option) else 0
3838
else:
3939
value = config.get(section, option)
4040

0 commit comments

Comments
 (0)