Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Sep 19, 2024
1 parent 32aabca commit 2a53615
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lamindb_setup/_init_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 252 in lamindb_setup/_init_instance.py

View check run for this annotation

Codecov / codecov/patch

lamindb_setup/_init_instance.py#L250-L252

Added lines #L250 - L252 were not covered by tests

try:
Expand Down

0 comments on commit 2a53615

Please sign in to comment.