summaryrefslogtreecommitdiff
path: root/web-server/opendc/util
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/opendc/util')
-rw-r--r--web-server/opendc/util/parameter_checker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/web-server/opendc/util/parameter_checker.py b/web-server/opendc/util/parameter_checker.py
index d37256e0..214dfa9d 100644
--- a/web-server/opendc/util/parameter_checker.py
+++ b/web-server/opendc/util/parameter_checker.py
@@ -49,6 +49,12 @@ def _incorrect_parameter(params_required, params_actual, parent=''):
if param_required == 'int' and not isinstance(param_actual, int):
return '{}.{}'.format(parent, param_name)
+ if param_required == 'float' and not isinstance(param_actual, float):
+ return '{}.{}'.format(parent, param_name)
+
+ if param_required == 'bool' and not isinstance(param_actual, bool):
+ return '{}.{}'.format(parent, param_name)
+
if param_required == 'string' and not isinstance(param_actual, str) and not isinstance(param_actual, int):
return '{}.{}'.format(parent, param_name)