Commit ae2511d4 authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug with ';' in end of attribute field.

parent a9f90f54
......@@ -120,6 +120,8 @@ class GFF3Record:
# Parse attributes
gff_record.attributes = dict()
attributes = "\t".join(line_fields[8:])
if attributes.strip().endswith(";"): # if attributes end with ';'
attributes = attributes.strip()[:-1]
attributes_array = attributes.split(";")
cleaned_attributes = list()
for attribute in attributes_array:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment