Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Links): safely fall back when keyerror is returned #2213

Merged

Conversation

stevekaplan123
Copy link
Contributor

Description

Badly formatted citations were generating a KeyError and preventing loading of segment in Rashba on Megillah

Code Changes

We are now handling the KeyError. The segment loads properly. The badly formatted citation simply appears as regular text and is not picked up as a link.

Copy link
Contributor

@yitzhakc yitzhakc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, please add a regression test with an example of a segment that previously threw an exception

@yitzhakc yitzhakc merged commit a3b300b into master Jan 21, 2025
15 of 17 checks passed
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