Skip to content

Commit

Permalink
Fix missing variable init
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Sep 19, 2019
1 parent adb1eeb commit 8680658
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions biopython_convert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def to_stats(record: SeqIO.SeqRecord) -> str:
# 'if' statements can be removed after https://github.com/daler/gffutils/pull/144
if record.name:
attributes = {'Name': [record.name]}
else:
attributes = {}
for k, v in record.annotations.items():
if k in stat_annotations:
if isinstance(v, list):
Expand Down

0 comments on commit 8680658

Please sign in to comment.