raise exception if len(msg_list) == 0