Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Jan 17, 2025
1 parent 027e3ec commit dd09b24
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lamindb_setup/_check_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ def _get_current_instance_settings() -> InstanceSettings | None:
def _check_in_modules(module: str, isettings: InstanceSettings | None = None) -> None:
not_in_instance_msg = f"'{module}' is missing from this instance."

if isettings is not None and module not in isettings.modules:
raise RuntimeError(not_in_instance_msg)
if isettings is not None:
if module not in isettings.modules:
raise RuntimeError(not_in_instance_msg)

Check warning on line 79 in lamindb_setup/_check_setup.py

View check run for this annotation

Codecov / codecov/patch

lamindb_setup/_check_setup.py#L79

Added line #L79 was not covered by tests
else:
return

from django.apps import apps

Expand Down

0 comments on commit dd09b24

Please sign in to comment.