Fix obscure crash in log entry view

This commit is contained in:
Raphael Michel
2020-09-07 11:27:23 +02:00
parent 23a9018988
commit 52944ff3a3
2 changed files with 4 additions and 2 deletions

View File

@@ -440,7 +440,7 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs):
bleach.clean(logentry.parsed_data.get('msg'), tags=[], strip=True)
)
if logentry.action_type.startswith('pretix.event.checkin'):
if sender and logentry.action_type.startswith('pretix.event.checkin'):
return _display_checkin(sender, logentry)
if logentry.action_type == 'pretix.control.views.checkin':