Merge pull request #19597 from kepstin/issue-19178-workaround

recording: work around invalid locale in caption events
This commit is contained in:
Anton Georgiev 2024-02-07 09:40:19 -05:00 committed by GitHub
commit 5f963c4465
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,6 +383,11 @@ def parse_events(directory="."):
have_record_events = True have_record_events = True
elif name == "EditCaptionHistoryEvent": elif name == "EditCaptionHistoryEvent":
parse_caption_edit(event, element) parse_caption_edit(event, element)
if event["locale"] is None:
logger.warn(
"Skipping invalid caption event with unset locale. See https://github.com/bigbluebutton/bigbluebutton/issues/19178 for details"
)
continue
else: else:
logger.debug("Unhandled event: %s", name) logger.debug("Unhandled event: %s", name)
continue continue