Skip to content

Commit 05e55d0

Browse files
🐛 Fix internal double auth registration.
1 parent dfda2b2 commit 05e55d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lapidary/runtime/client_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def lapidary_authenticate(self, *auth_args: NamedAuth, **auth_kwargs: httpx.Auth
5151
if auth_args:
5252
# make python complain about duplicate names
5353
self.lapidary_authenticate(**dict(auth_args), **auth_kwargs)
54-
55-
self._auth_registry.authenticate(auth_kwargs)
54+
else:
55+
self._auth_registry.authenticate(auth_kwargs)
5656

5757
def lapidary_deauthenticate(self, *sec_names: str) -> None:
5858
"""Remove reference to a given Auth instance.

0 commit comments

Comments
 (0)