Skip to content

Commit

Permalink
root: don't show warning when app has no URLs to import (cherry-pick …
Browse files Browse the repository at this point in the history
…#7765) (#7935)

root: don't show warning when app has no URLs to import (#7765)

Co-authored-by: Jens L <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and BeryJu authored Dec 19, 2023
1 parent 6c214ff commit 88a3eed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion authentik/api/v3/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
for _authentik_app in get_apps():
try:
api_urls = import_module(f"{_authentik_app.name}.urls")
except (ModuleNotFoundError, ImportError) as exc:
except ModuleNotFoundError:
continue
except ImportError as exc:
LOGGER.warning("Could not import app's URLs", app_name=_authentik_app.name, exc=exc)
continue
if not hasattr(api_urls, "api_urlpatterns"):
Expand Down

0 comments on commit 88a3eed

Please sign in to comment.