Skip to content
Snippets Groups Projects
Verified Commit b43c5df0 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix installations without any apps

parent d50c0c7a
No related branches found
No related tags found
No related merge requests found
Pipeline #4612 passed
......@@ -64,7 +64,7 @@ def dt_show_toolbar(request: HttpRequest) -> bool:
def get_app_packages() -> Sequence[str]:
"""Find all registered apps from the setuptools entrypoint."""
return [f"{ep.module}.{ep.attr}" for ep in metadata.entry_points()["aleksis.app"]]
return [f"{ep.module}.{ep.attr}" for ep in metadata.entry_points().get("aleksis.app", [])]
def merge_app_settings(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment