summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/raspberrypi/ctt/ctt_tools.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raspberrypi/ctt/ctt_tools.py b/utils/raspberrypi/ctt/ctt_tools.py
index f4b9baac..3a2fb4af 100644
--- a/utils/raspberrypi/ctt/ctt_tools.py
+++ b/utils/raspberrypi/ctt/ctt_tools.py
@@ -36,10 +36,10 @@ def get_config(dictt, key, default, ttype):
if 'float' not in str(type(val)):
raise ValueError
elif ttype == 'dict':
- if type(val) != type(dictt):
+ if not isinstance(val, dict):
raise ValueError
elif ttype == 'list':
- if type(val) != type([]):
+ if not isinstance(val, list):
raise ValueError
elif ttype == 'bool':
ttype = int(bool(ttype))