Skip to content

Commit 3d1cbf8

Browse files
feat: use exception chaining
1 parent d92024c commit 3d1cbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

augur/refine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def run(args):
245245
try:
246246
T.root_with_outgroup(args.root)
247247
except ValueError as err:
248-
raise ValueError(f"{err}\nHINT: This error may be because your specified root with name '{args.root}' was not found in your alignment file")
248+
raise ValueError(f"HINT: This error may be because your specified root with name '{args.root}' was not found in your alignment file") from err
249249

250250
tt = TreeAnc(tree=T, aln=aln, ref=ref, gtr='JC69', verbose=1)
251251

0 commit comments

Comments
 (0)