From a97071cd0377edd2cc2a94edb477f878f46d408c Mon Sep 17 00:00:00 2001 From: ticvac Date: Tue, 7 Jan 2025 17:49:16 +0100 Subject: [PATCH] not dumb error log message --- mamweb/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mamweb/admin.py b/mamweb/admin.py index 5e7bb820..a0ccf69e 100644 --- a/mamweb/admin.py +++ b/mamweb/admin.py @@ -60,10 +60,10 @@ def get_app_list(self, request, app_label=None): try: # na macu nefunguje locale.strxfrm :-/ proto je tu try except block for app in app_list: app['models'].sort(key=lambda x: locale.strxfrm(x['name'].lower())) - except OSError: + except OSError as e: # locale.strxfrm nefunguje na macu... :-/ -> neprovede se řazení logger = logging.getLogger(__name__) - logger.error('locale.strxfrm nefunguje na macu... :-/ -> neprovede se řazení') + logger.error(e) return app_list