Skip to content

Commit

Permalink
fix: print the sample key instead of dictionary contents in non-exist…
Browse files Browse the repository at this point in the history
…ing reference error log
  • Loading branch information
florianzwagemaker committed May 3, 2023
1 parent a5b56e5 commit f8c7a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ViroConstrictor/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _check_sample_properties(self, sampleinfo: dict[Hashable, Any]) -> None:
if reffile := sample.get("REFERENCE"):
if not os.path.isfile(reffile):
log.error(
f"[bold red]The given reference fasta file for sample '{sample}' does not exist. Please check the reference fasta and try again. Exiting...[/bold red]"
f"[bold red]The given reference fasta file for sample '{item}' does not exist. Please check the reference fasta and try again. Exiting...[/bold red]"
)
sys.exit(1)
reference_files.add(reffile)
Expand Down

0 comments on commit f8c7a12

Please sign in to comment.