Skip to content

Commit

Permalink
Merge pull request #1093 from maykinmedia/fix/django-admin-index
Browse files Browse the repository at this point in the history
Fixed autoload of django-admin-index
  • Loading branch information
alextreme authored Mar 19, 2024
2 parents 1a122ba + 89b6313 commit 4bc81d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/open_inwoner/accounts/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit 4bc81d8

Please sign in to comment.