raise our TypeError when value for burnins is dictionary, list or tuple

This commit is contained in:
iLLiCiTiT 2020-02-27 15:32:40 +01:00
parent 3256c1be9a
commit 4bb9eef688

View file

@ -418,6 +418,13 @@ def burnins_from_data(
if not value:
continue
if isinstance(value, (dict, list, tuple)):
raise TypeError((
"Expected string or number type."
" Got: {} - \"{}\""
" (Make sure you have new burnin presets)."
).format(str(type(value)), str(value)))
has_timecode = TIME_CODE_KEY in value
align = None