Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: byhsu <byhsu@linkedin.com>
  • Loading branch information
byhsu committed May 11, 2023
1 parent 4615d2e commit 0d4684f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/clients/auth/token_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import urllib.parse
from dataclasses import dataclass
from datetime import datetime, timedelta

from flytekit import logger

Check warning on line 9 in flytekit/clients/auth/token_client.py

View check run for this annotation

Codecov / codecov/patch

flytekit/clients/auth/token_client.py#L9

Added line #L9 was not covered by tests
import requests

from flytekit.clients.auth.exceptions import AuthenticationError, AuthenticationPending
Expand Down Expand Up @@ -150,7 +150,7 @@ def poll_token_endpoint(resp: DeviceCodeResponse, token_endpoint: str, client_id
except AuthenticationPending:
...
except Exception as e:
print("Authentication attempt failed: ", e)
logger.error("Authentication attempt failed: ", e)
raise e

Check warning on line 154 in flytekit/clients/auth/token_client.py

View check run for this annotation

Codecov / codecov/patch

flytekit/clients/auth/token_client.py#L152-L154

Added lines #L152 - L154 were not covered by tests
print("Authentication Pending...")
time.sleep(interval.total_seconds())
Expand Down

0 comments on commit 0d4684f

Please sign in to comment.