Skip to content

Commit

Permalink
Fix download collection record (#4285)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Oct 4, 2024
1 parent 364733b commit 984e8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bims/download/collection_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def write_batch_to_csv(header, rows, path_file, start_index, upload_template_hea
with open(taxon_group.occurrence_upload_template.path, 'r', encoding='utf-8') as csvfile:
reader = csv.DictReader(csvfile)
upload_template_headers = reader.fieldnames
except FileNotFoundError:
except (FileNotFoundError, UnicodeDecodeError):
upload_template_headers = []

for obj in queryset_iterator(collection_results):
Expand Down

0 comments on commit 984e8f1

Please sign in to comment.