Skip to content
Snippets Groups Projects
Commit 9117b767 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Make sure parsing errors result in skipping the frame when assertions are disabled

parent 85e154b2
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,8 @@ if __name__ == '__main__':
vprint_state(state)
vprint()
assert state.exa is not None
if state.exa is None:
raise AssertionError
except (TypeError, AssertionError):
vprint('\rerror during parsing, wait for a bit...', end='')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment