Project

General

Profile

Bug #96079

erreur message de journal "manager.role.administrator.role.addition", AttributeError: 'Event' object has no attribute 'get'

Added by Sentry Io 6 days ago. Updated 6 days ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
29 September 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Info que je trouve peu lisible dans la trace fournie par sentry, plus claire :

In [7]: event.message
could not render message of event type "manager.role.administrator.role.addition" 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/authentic2/apps/journal/models.py", line 426, in message_in_context
    return self.type.definition.get_message(self, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/authentic2/manager/journal_event_types.py", line 472, in get_message
    admin_role = admin_role or event.get('admin_role_name')
                               ^^^^^^^^^
AttributeError: 'Event' object has no attribute 'get'
Out[7]: 'manager.role.administrator.role.addition'

https://sentry.entrouvert.org/entrouvert/publik/issues/133863/

TypeError: 'Event' object is not subscriptable
  File "django/template/base.py", line 829, in _resolve_lookup
    current = current[bit]

AttributeError: 'Event' object has no attribute 'get'
  File "authentic2/apps/journal/models.py", line 426, in message_in_context
    return self.type.definition.get_message(self, context)
  File "authentic2/manager/journal_event_types.py", line 472, in get_message
    admin_role = admin_role or event.get('admin_role_name')

could not render message of event type "manager.role.administrator.role.addition" 

History

#1

Updated by Frédéric Péters 6 days ago

  • Project changed from Suivi des traces to Authentic 2

Also available in: Atom PDF