This is output of print(message_split) in main program before error:
This is output of print(can_message) in message_type_recognizer
It even prints after elif condition can_message[4] as value "d"
Quote:['20.678080', '1', '9', 'Rx', 'd', '8', '04', '00', '00', '00', '00', '00', '00', '00', 'Length', '=', '242000', 'BitCount', '=', '125', 'ID', '=', '9']
This is output of print(can_message) in message_type_recognizer
Quote:['20.688593', '1', '9', 'Rx', 'd', '8', '04', '00', '00', '00', '00', '00', '00', '00', 'Length', '=', '242000', 'BitCount', '=', '125', 'ID', '=', '9']
It even prints after elif condition can_message[4] as value "d"