When deprecating the old method of returning a timeline object link as dict instead of an object, we have made a mistake. blank has previously been optional, but here we access it directly with link['blank']. This will of course cause a crash if the key is not present.
if link:
# TODO: Remove in v1.1 (see #1398)
if isinstance(link, dict):
logger.warning(DEPRECATE_LINK_DICT_MSG)
link = PluginObjectLink(
url=link['url'],
name=link['label'],
blank=link['blank'],
)
When deprecating the old method of returning a timeline object link as
dict
instead of an object, we have made a mistake.blank
has previously been optional, but here we access it directly withlink['blank']
. This will of course cause a crash if the key is not present.See also #1398.