Skip to content

find_speaker_clashes: avoid crash without a talk or a page#768

Merged
drnlm merged 1 commit intoCTPUG:masterfrom
terceiro:fix-crash-find-speaker-clashes
Apr 16, 2026
Merged

find_speaker_clashes: avoid crash without a talk or a page#768
drnlm merged 1 commit intoCTPUG:masterfrom
terceiro:fix-crash-find-speaker-clashes

Conversation

@terceiro
Copy link
Copy Markdown
Contributor

@terceiro terceiro commented Apr 16, 2026

If a user creates a schedule item and adds them to the schedule before associating a talk or a page, this causes a crash, because speakers will not be defined.

UnboundLocalError: cannot access local variable 'speakers' where it
is not associated with a value

If a user creates a schedule item and adds them to the schedule before
associating a talk or a page, this causes a crash, because `speakers`
will not be defined.

    UnboundLocalError: cannot access local variable 'speakers' where it
    is not associated with a value
@terceiro terceiro force-pushed the fix-crash-find-speaker-clashes branch from 02c4ecb to ac897ca Compare April 16, 2026 15:21
@terceiro
Copy link
Copy Markdown
Contributor Author

The model validation should also probably disallow saving a schedule item without either a talk or a page.

@drnlm drnlm merged commit 6b38634 into CTPUG:master Apr 16, 2026
34 checks passed
@drnlm
Copy link
Copy Markdown
Member

drnlm commented Apr 16, 2026

Thanks for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants