Private GIT

Skip to content
Snippets Groups Projects
Commit 7388d329 authored by Fernando's avatar Fernando
Browse files

Merge pull request #1850 from miigotu/convert-bools-config

Make check_setting_int understand True/False from settings
parents 4b11f48c fe50f828
No related branches found
No related tags found
No related merge requests found
......@@ -442,7 +442,14 @@ def minimax(val, default, low, high):
################################################################################
def check_setting_int(config, cfg_name, item_name, def_val, silent=True):
try:
my_val = int(config[cfg_name][item_name])
my_val = config[cfg_name][item_name]
if str(my_val).lower() == "true":
my_val = 1
elif str(my_val).lower() == "false":
my_val = 0
my_val = int(my_val)
if str(my_val) == str(None):
raise
except:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment