Commit 9117b767 authored by Taddeüs Kroes's avatar Taddeüs Kroes

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

parent 85e154b2
......@@ -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='')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment