Skip to content

Commit

Permalink
Change 'is' to '==' for string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
grablair committed May 6, 2024
1 parent 0a2e9ae commit 1e61ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monarch_money_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def __init__(self, creds, db, session_file):
self.account_map = {}
for account in result['accounts']:
if account['displayName'] in self.account_map:
if account['displayName'] is "Automated Transactions":
if account['displayName'] == "Automated Transactions":
logger.error("More than one account exists with the name 'Automated Transactions'. Please rename extra accounts with that name.")
sys.exit(1)
else:
logger.error(f"Multiple accounts with name '{category['name']}' exist. This may result in unintended behavior.")
logger.error(f"Multiple accounts with name '{account['name']}' exist. This may result in unintended behavior.")

self.account_map[account['displayName']] = account['id']

Expand Down

0 comments on commit 1e61ff9

Please sign in to comment.