Skip to content

Commit 285ac3b

Browse files
committed
wait until request is correctly parsed
Signed-off-by: Martin Simonovsky <[email protected]>
1 parent eb5a67f commit 285ac3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flytekit/clients/auth/auth_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ def get_creds_from_remote(self) -> Credentials:
367367

368368
self._request_authorization_code()
369369

370-
server.handle_request(q)
370+
while q.empty():
371+
server.handle_request(q)
371372
server.server_close()
372373

373374
# Send the call to request the authorization code in the background

0 commit comments

Comments
 (0)