From 2a536151bc9762fe767241f7400139676721cb5a Mon Sep 17 00:00:00 2001 From: Koncopd Date: Thu, 19 Sep 2024 18:09:38 +0200 Subject: [PATCH] fix --- lamindb_setup/_init_instance.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lamindb_setup/_init_instance.py b/lamindb_setup/_init_instance.py index ea419d51..99c6583b 100644 --- a/lamindb_setup/_init_instance.py +++ b/lamindb_setup/_init_instance.py @@ -244,9 +244,11 @@ def init( # contains access_token _user: UserSettings | None = kwargs.get("_user", None) if _user is None: - user_handle, user__uuid = settings.user.handle, settings.user._uuid.hex # type: ignore + user_handle = settings.user.handle + user__uuid = None if settings.user._uuid is None else settings.user._uuid.hex else: - user_handle, user__uuid = _user.handle, _user._uuid.hex # type: ignore + user_handle = _user.handle + user__uuid = None if _user._uuid is None else _user._uuid.hex access_token = _user.access_token try: