Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mclmax committed Oct 10, 2024
1 parent 1ea21ae commit 2ea41fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion canarytokens/credit_card_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _get_lambda_client(refresh_client: bool = False):
"""
global _CACHED_LAMBDA_CLIENT

if _CACHED_LAMBDA_CLIENT and not refresh_client:
if _CACHED_LAMBDA_CLIENT is not None and not refresh_client:
return _CACHED_LAMBDA_CLIENT

botocore_session = botocore.session.get_session()
Expand Down
4 changes: 1 addition & 3 deletions frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1885,9 +1885,7 @@ def _(

return CreditCardV2TokenResponse(
email=canarydrop.alert_email_recipient or "",
webhook_url=canarydrop.alert_webhook_url
if canarydrop.alert_webhook_url
else "",
webhook_url=canarydrop.alert_webhook_url or "",
token=canarydrop.canarytoken.value(),
token_url=canarydrop.generated_url,
auth_token=canarydrop.auth,
Expand Down

0 comments on commit 2ea41fa

Please sign in to comment.