Skip to content

Commit

Permalink
refine parameter checking
Browse files Browse the repository at this point in the history
informative error instead of raised exception when `--reference` isn't given to bench or refine
  • Loading branch information
ACEnglish committed Feb 13, 2025
1 parent bfa138c commit ac7a4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truvari/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def check_params(args):
elif args.reference is None:
args.reference = params["reference"]

if not os.path.exists(args.reference):
if args.reference is not None and not os.path.exists(args.reference):
check_fail = True
logging.error("Reference %s does not exist", args.reference)

Expand Down

0 comments on commit ac7a4f6

Please sign in to comment.