Skip to content

Commit 4ac769d

Browse files
committed
feature/python-sdk-psd2: Do not init monetary account if user_payment_service_provider is present.
1 parent 927df88 commit 4ac769d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bunq/sdk/context/user_context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def _set_user(self, user: BunqModel) -> None:
4141
self._ERROR_UNEXPECTED_USER_INSTANCE.format(user.__class__))
4242

4343
def init_main_monetary_account(self) -> None:
44+
if self._user_payment_service_provider is not None:
45+
return
46+
4447
all_monetary_account = endpoint.MonetaryAccountBank.list().value
4548

4649
for account in all_monetary_account:

0 commit comments

Comments
 (0)