Skip to content

Commit f342517

Browse files
authored
Merge pull request boolangery#7 from NanakiPL/master
Instance of a base unnamed Exception
2 parents 2b4f314 + f2f7c82 commit f342517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luaparser/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def process(self) -> Chunk:
164164
node = self.parse_chunk()
165165

166166
if not node:
167-
raise Exception("Expecting a chunk")
167+
raise SyntaxException("Expecting a chunk")
168168
return node
169169

170170
def save(self):

0 commit comments

Comments
 (0)