The function read_row() handles two different errors the same way. The errors come from calling collection_from_aip() and are either AttributeError from the AIP not matching any pattern for a group or ValueError from the group not matching any known groups.
In either case, the same text is added to the row for the CSV and the same error is printed to the terminal. Differentiate between the two errors so it is clear what needs to be fixed.
The function read_row() handles two different errors the same way. The errors come from calling collection_from_aip() and are either AttributeError from the AIP not matching any pattern for a group or ValueError from the group not matching any known groups.
In either case, the same text is added to the row for the CSV and the same error is printed to the terminal. Differentiate between the two errors so it is clear what needs to be fixed.