Skip to content

Commit de06c75

Browse files
Fix auto-create param validation
1 parent c2e7503 commit de06c75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyslicer/utils/validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ def _has_empty_column(self):
229229
# Value is a dictionary when it is an entity being inserted:
230230
# "my-entity": {"year": 2016}
231231
# It can also be a parameter, such as "auto-create":
232-
# "auto-create-columns": ["table", "column"]
232+
# "auto-create": ["table", "column"]
233233
if not isinstance(
234-
value, (dict, bool)) or value is None or len(
234+
value, (dict, list)) or value is None or len(
235235
str(value)) == 0:
236236
raise exceptions.WrongTypeException(
237237
"The value for an id should be a dictionary")

0 commit comments

Comments
 (0)