小优化

This commit is contained in:
曹前明 2022-11-07 22:07:03 +08:00
parent dd3f3857b8
commit b04473cc3b
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ def create_remind(event: Event, params: dict):
'can_handle': i.can_handle,
})
elif i.variable == 'area_manager':
if event.area.manager:
if event.area and event.area.manager:
Remind.objects.get_or_create(event=event, recipient=event.area.manager,
defaults={
'event': event,