obicsv debug

This commit is contained in:
Eric Coissac
2024-11-24 23:38:49 +01:00
parent 3d06978808
commit 69ef1758a2
6 changed files with 41 additions and 16 deletions

View File

@ -141,6 +141,9 @@ func (taxonomy *Taxonomy) TaxidSting(id string) (string, error) {
// - If the taxid is unknown, the method will log a fatal error.
func (taxonomy *Taxonomy) Taxon(taxid string) *Taxon {
taxonomy = taxonomy.OrDefault(false)
if taxonomy == nil {
return nil
}
id, err := taxonomy.Id(taxid)