Browse Source

Merge pull request #323 from agrenott/master

Make VisitError inherit from LarkError
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.6
Erez Shinan 5 years ago
committed by GitHub
parent
commit
ed46efbd10
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/exceptions.py

+ 1
- 1
lark/exceptions.py View File

@@ -86,7 +86,7 @@ class UnexpectedToken(ParseError, UnexpectedInput):

super(UnexpectedToken, self).__init__(message)

class VisitError(Exception):
class VisitError(LarkError):
def __init__(self, tree, orig_exc):
self.tree = tree
self.orig_exc = orig_exc


Loading…
Cancel
Save