Skip to content

Commit

Permalink
fix: None error when no circular contigs passed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Feb 13, 2024
1 parent 78d376a commit 452dae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fasta_checksum_utils/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ async def main():

args = parser.parse_args()

report = await fasta_report(args.fasta, args.fai, frozenset(args.circular_contigs), (AlgorithmMD5, AlgorithmGA4GH))
report = await fasta_report(
args.fasta, args.fai, frozenset(args.circular_contigs or set()), (AlgorithmMD5, AlgorithmGA4GH))
if args.out_format == "bento-json":
print(report.as_bento_json(genome_id=getattr(args, "genome_id", None)))
else:
Expand Down

0 comments on commit 452dae4

Please sign in to comment.