Skip to content

Commit

Permalink
[exceptions] fix generators in exceptions break parproc
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 20, 2023
1 parent f4f3c44 commit 06509b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tatsu/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class NoParseInfo(ParseException):

class FailedParse(ParseError):
def __init__(self, tokenizer, stack, item):
stack = list(stack) # NOTE: can't pass through multiprocessing if generator
# note: pass all arguments to super() to avoid pickling problems
# https://stackoverflow.com/questions/27993567/
super().__init__(tokenizer, stack, item)
Expand Down

0 comments on commit 06509b6

Please sign in to comment.