perhaps better to return file names instead of None when writing no primary targets
perhaps better to return file names instead of None when writing no primary targets

desihub/desitarget,desihub/desitarget