Skip to content

Commit

Permalink
fix usage of is not
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-muir committed May 22, 2024
1 parent 2632df0 commit 518a509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion credsmash/crypto/aes_ctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _from_b64(s): # type (str): -> bytes
class IntegrityError(Exception):

def __init__(self, value=""):
self.value = "INTEGRITY ERROR: " + value if value is not "" else \
self.value = "INTEGRITY ERROR: " + value if value != "" else \
"INTEGRITY ERROR"

def __str__(self):
Expand Down
2 changes: 1 addition & 1 deletion credsmash/kms_key_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __repr__(self):
class KmsError(Exception):

def __init__(self, value=""):
self.value = "KMS ERROR: " + value if value is not "" else "KMS ERROR"
self.value = "KMS ERROR: " + value if value != "" else "KMS ERROR"

def __str__(self):
return self.value

0 comments on commit 518a509

Please sign in to comment.