aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/libmsec.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index eac4831..b947235 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -690,7 +690,9 @@ def set_zero_one_variable(file, variable, value, secure_value, one_msg, zero_msg
f = ConfigFile.get_config_file(file)
if f.exists():
- val = int(f.get_shell_variable(variable))
+ val = f.get_shell_variable(variable)
+ if val:
+ val = int(val)
else:
val = None