Skip to content

Commit

Permalink
fixup: use "is" and "is not" when comparing with None values
Browse files Browse the repository at this point in the history
Co-authored-by: Jover Lee <[email protected]>
  • Loading branch information
j23414 and joverlee521 authored Mar 12, 2024
1 parent 61af263 commit 95b7446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/newreference.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def new_reference(referencefile, outgenbank, outfasta, gene):

# If user provides a --gene 'some name' is not found, print a warning and use the entire genome.
# Otherwise do not print a warning.
if(gene != None and startofgene==None and endofgene==None):
if(gene is not None and startofgene is None and endofgene is None):
print(f"ERROR: No '{gene}' was found under 'gene' or 'CDS' features in the GenBank file.", file=sys.stderr)
sys.exit(1)

Expand Down

0 comments on commit 95b7446

Please sign in to comment.