Skip to content

ExtendedDictionary_KeyNotFoundDueToNoData

QuantConnect.ExtendedDictionary_KeyNotFoundDueToNoData

Bases: Generic[QuantConnect_Messages_KeyNotFoundDueToNoData_ExtendedDictionary_TKey]

__call__

__call__(
    instance: ExtendedDictionary[
        QuantConnect_Messages_KeyNotFoundDueToNoData_ExtendedDictionary_TKey,
        QuantConnect_Messages_KeyNotFoundDueToNoData_ExtendedDictionary_TValue,
    ],
    key: QuantConnect_Messages_KeyNotFoundDueToNoData_ExtendedDictionary_TKey,
) -> str

Returns a string message saying that the given key wasn't found in the given instance object, likely because there was no data at that moment in time. It also suggests the safe access idioms that prevent the exception. This is the single template for the Slice/DataDictionary-family key-not-found errors