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

Commit 62c2882

Browse files
committed
It is RuntimeError
1 parent 4b236ec commit 62c2882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seamapi/access_codes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def create(
171171
and starts_at is not None
172172
and datetime.fromisoformat(starts_at) > datetime.now() + timedelta(seconds=5)
173173
):
174-
raise RuntimeException("Cannot use wait_for_code with a future time bound code")
174+
raise RuntimeError("Cannot use wait_for_code with a future time bound code")
175175

176176
res = self.seam.make_request(
177177
"POST",
@@ -184,7 +184,7 @@ def create(
184184
if wait_for_code:
185185
while (access_code.code is None):
186186
if (access_code.status == "unknown"):
187-
raise RuntimeException("Gave up waiting for code since access code status is unknown")
187+
raise RuntimeError("Gave up waiting for code since access code status is unknown")
188188
access_code = access_codes.get(access_code)
189189

190190
return access_code

0 commit comments

Comments
 (0)