Skip to content

Commit d2177cb

Browse files
authored
Merge pull request #198 from jg-rp/restore-docs
docs: restore the error handling section of the known issues page
2 parents 8981056 + 42270bf commit d2177cb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/known_issues.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ This does not apply to parsing of integer literals, only converting strings to i
2828

2929
The built-in [`date`](filter_reference.md#date) filter uses [dateutil](https://dateutil.readthedocs.io/en/stable/) for parsing strings to `datetime`s, and `strftime` for formatting. There are likely to be some inconsistencies between this and the reference implementation's equivalent parsing and formatting of dates and times.
3030

31+
## Error Handling
32+
33+
Python Liquid might not handle syntax or type errors in the same way as the reference implementation. We might fail earlier or later, and will almost certainly produce a different error message.
34+
35+
Python Liquid does not have a "lax" parser, like Ruby Liquid. If the lexer encounters unknown symbols, a `LiquidSyntaxError` is raised. Upon finding an error in [lax mode](/introduction/strictness), the parser simply discards the current block and continues to to the next block, if one is available. Also, Python Liquid will never inject error messages into an output document.
36+
3137
## Orphaned `{% break %}` and `{% continue %}`
3238

3339
**_See issue [#76](https://github.com/jg-rp/liquid/issues/76)_**

0 commit comments

Comments
 (0)