From 89b6313164380ce75f521e6ff0d9dba021d697be Mon Sep 17 00:00:00 2001 From: Paul Schilling Date: Mon, 18 Mar 2024 09:59:11 +0100 Subject: [PATCH] Fixed autoload of django-admin-index --- src/open_inwoner/accounts/apps.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/open_inwoner/accounts/apps.py b/src/open_inwoner/accounts/apps.py index a92fac11c3..8494c79c27 100644 --- a/src/open_inwoner/accounts/apps.py +++ b/src/open_inwoner/accounts/apps.py @@ -25,8 +25,9 @@ def update_admin_index(sender, **kwargs): try: call_command("loaddata", "django-admin-index", verbosity=0, stdout=StringIO()) - except: # noqa - print("Error: Unable to load django-admin-index fixture!") + except Exception as exc: + print(f"Error: Unable to load django-admin-index fixture ({exc})") + return print("Loaded django-admin-index fixture")