Skip to content

Fix escape for undefined variables #31

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Gerrit-K
Copy link

If the escape filter is used for an undefined variable (e.g. r'\VAR{foo|e}' with template.render()), latex.escape:61 will raise an error: TypeError: expected string or bytes-like object. This PR should fix it.

@P1robot
Copy link

P1robot commented Jan 24, 2020

Automated benchmark results (pass #0): passed

concurrency: 32
requests per second: 6160
concurrency: 128
requests per second: 7641
concurrency: 512
requests per second: 4685
concurrency: 1024
requests per second: 4006

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