Skip to content

Commit 8680658

Browse files
author
Nolan Woods
committed
Fix missing variable init
1 parent adb1eeb commit 8680658

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

biopython_convert/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def to_stats(record: SeqIO.SeqRecord) -> str:
8282
# 'if' statements can be removed after https://github.com/daler/gffutils/pull/144
8383
if record.name:
8484
attributes = {'Name': [record.name]}
85+
else:
86+
attributes = {}
8587
for k, v in record.annotations.items():
8688
if k in stat_annotations:
8789
if isinstance(v, list):

0 commit comments

Comments
 (0)