mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
raise our TypeError when value for burnins is dictionary, list or tuple
This commit is contained in:
parent
3256c1be9a
commit
4bb9eef688
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue