summaryrefslogtreecommitdiff
path: root/opendc/util/parameter_checker.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-25 10:30:43 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-25 10:30:43 +0200
commit4f75791f1a92c6993dbb65bee66f9aae6725bd92 (patch)
tree298817098c9a1478d58d18e446b7fcefb1578a75 /opendc/util/parameter_checker.py
parent64a8696e1507d6affd9b9ed56d2577cdb3fe9747 (diff)
Add PUT method and tests
Diffstat (limited to 'opendc/util/parameter_checker.py')
-rw-r--r--opendc/util/parameter_checker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/util/parameter_checker.py b/opendc/util/parameter_checker.py
index bf02ba9b..f55e780e 100644
--- a/opendc/util/parameter_checker.py
+++ b/opendc/util/parameter_checker.py
@@ -48,7 +48,7 @@ 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 == 'string' and not isinstance(param_actual, str):
+ if param_required == 'string' and not isinstance(param_actual, str) and not isinstance(param_actual, int):
return '{}.{}'.format(parent, param_name)
if param_required.startswith('list') and not isinstance(param_actual, list):