Skip to content

Commit 9b1005f

Browse files
author
Allen Short
committed
obvious bug
1 parent b9fec8d commit 9b1005f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parsley.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def makeParser(input):
1616
:param input: The string you want to parse.
1717
"""
1818
parser = g(input)
19-
parser._trace = tracefunc
19+
if tracefunc:
20+
parser._trace = tracefunc
2021
return _GrammarWrapper(parser, input)
2122
makeParser._grammarClass = g
2223
return makeParser

0 commit comments

Comments
 (0)