Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 7684c1f

Browse files
committed
feat: Do not wait for action action attempt on access_code.create
1 parent 7656dac commit 7684c1f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

seamapi/access_codes.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,7 @@ def create(
171171
json=create_payload,
172172
)
173173

174-
action_attempt = self.seam.action_attempts.poll_until_ready(
175-
res["action_attempt"]["action_attempt_id"]
176-
)
177-
success_res: Any = action_attempt.result
178-
179-
return AccessCode.from_dict(success_res["access_code"])
174+
return AccessCode.from_dict(res["access_code"])
180175

181176
@report_error
182177
def create_multiple(

0 commit comments

Comments
 (0)