Skip to content

Commit 11e758f

Browse files
committed
Fix type check issue
1 parent 7018df5 commit 11e758f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/databricks/sql/auth/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def get_python_sql_connector_auth_provider(hostname: str, **kwargs):
9090
tls_client_cert_file=kwargs.get("_tls_client_cert_file"),
9191
oauth_scopes=PYSQL_OAUTH_SCOPES,
9292
oauth_client_id=kwargs.get("oauth_client_id") or PYSQL_OAUTH_CLIENT_ID,
93-
oauth_redirect_port_range=[kwargs.get("oauth_redirect_port")]
94-
if kwargs.get("oauth_client_id")
93+
oauth_redirect_port_range=[kwargs["oauth_redirect_port"]]
94+
if kwargs.get("oauth_client_id") and kwargs.get("oauth_redirect_port")
9595
else PYSQL_OAUTH_REDIRECT_PORT_RANGE,
9696
oauth_persistence=kwargs.get("experimental_oauth_persistence"),
9797
)

0 commit comments

Comments
 (0)