Skip to content

Commit 36b34e5

Browse files
sungwyCopilot
andauthored
thnx copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 779b49b commit 36b34e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyiceberg/catalog/rest/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ def _create_session(self) -> Session:
256256
auth_type_config = auth_config.get(auth_type, {})
257257
auth_impl = auth_config.get("impl")
258258

259-
if auth_type is CUSTOM and not auth_impl:
259+
if auth_type == CUSTOM and not auth_impl:
260260
raise ValueError("auth.impl must be specified when using custom auth.type")
261261

262-
if auth_type is not CUSTOM and auth_impl:
262+
if auth_type != CUSTOM and auth_impl:
263263
raise ValueError("auth.impl can only be specified when using custom auth.type")
264264

265265
session.auth = AuthManagerAdapter(AuthManagerFactory.create(auth_impl or auth_type, auth_type_config))

0 commit comments

Comments
 (0)