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

Fixed the AML parsing bug in case of emoticons or UTF-8 characters #76

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

Conversation

Parth7600
Copy link
Collaborator

Integrated the new AML parser into the old kerckhoff and tested using many emojis and UTF-8 characters. Also tested that the weird bug with bulleted lists does not occur with this new parser.

Comment on lines +83 to +84
parser = Parser()
aml_content = parser.parse(aml_text)
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that the parser has several assert statements, that when triggered, will cause the server to return a 500 response without any clear indication of what went wrong. Could you wrap this in a try/except block and return a more informative response to the client? (If possible, it would be best if you could replace each "assert" statement in the parser with an exception with a custom error message, but if you don't completely understand the parser code then it's fine not to have this).

We will have to add the ability to show the error messages for non-200 responses in a future issue.

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