AttributeError: service_agreement
@remi-stripe is already working on this.
Since Feb 7, 2024.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
Account class has tos_acceptance: Optional[TosAcceptance].
TosAcceptance class has service_agreement: Optional[str]
The following code:
if (
connected_account.tos_acceptance is not None
and connected_account.tos_acceptance.service_agreement == "recipient"
):
Should not rais exceptions, but it does:
AttributeError: service_agreement
To Reproduce
- Fetch the account with non-recipient service agreement
- Run the above
ifstatementthe
Expected behavior
Exception should not be raised
Code snippets
No response
OS
macOS
Language version
3.11.4
Library version
8.1.0
API version
2019-08-14
Additional context
No response
- Dominant language
- Python
- Stars
- 2k
- Forks
- 539
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 26
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stripe/stripe-python
-
feature-request future
Difficulty 4/5 3-5 days Newbie friendliness 35/100
stripe/stripe-python#1886 · 1 comment ·
-
feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 54/100
stripe/stripe-python#1841 · 1 comment ·
-
feature-request future
Difficulty 3/5 1-2 days Newbie friendliness 52/100
stripe/stripe-python#1812 · 1 comment ·
-
feature-request future
Difficulty 3/5 1-2 days Newbie friendliness 74/100
stripe/stripe-python#1796 · 3 comments ·
-
feature-request future
Difficulty 4/5 3-5 days Newbie friendliness 38/100
stripe/stripe-python#1465 · 4 comments · 2 reactions ·
All issues in stripe/stripe-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100