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