diff --git a/vanguard/account.py b/vanguard/account.py index ec55003..b6fca2d 100644 --- a/vanguard/account.py +++ b/vanguard/account.py @@ -52,7 +52,7 @@ def _get_account_id(self, selector): string: account_id """ account_id = selector.query_selector("span > span > span > span").inner_text() - if len(account_fields := account_id.split("—")) == 3: + if len(account_fields := account_id.split("—")) == 3 and ("brokerage" in account_fields[1].lower()): return account_fields[2].strip().replace("*", "") return None