Parcourir la 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 il y a 5 ans
committed by GitHub
Parent
révision
ed46efbd10
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      lark/exceptions.py

+ 1
- 1
lark/exceptions.py Voir le fichier

@@ -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


Chargement…
Annuler
Enregistrer