We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 779b49b commit 36b34e5Copy full SHA for 36b34e5
pyiceberg/catalog/rest/__init__.py
@@ -256,10 +256,10 @@ def _create_session(self) -> Session:
256
auth_type_config = auth_config.get(auth_type, {})
257
auth_impl = auth_config.get("impl")
258
259
- if auth_type is CUSTOM and not auth_impl:
+ if auth_type == CUSTOM and not auth_impl:
260
raise ValueError("auth.impl must be specified when using custom auth.type")
261
262
- if auth_type is not CUSTOM and auth_impl:
+ if auth_type != CUSTOM and auth_impl:
263
raise ValueError("auth.impl can only be specified when using custom auth.type")
264
265
session.auth = AuthManagerAdapter(AuthManagerFactory.create(auth_impl or auth_type, auth_type_config))
0 commit comments