Skip to content

Commit 3c4c15a

Browse files
authored
Update parse.py
1 parent 70e93a8 commit 3c4c15a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gazelle/parse.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ def parse_import_statements(content, filepath):
1616
try:
1717
tree = ast.parse(content)
1818
except Exception as inst:
19-
print("cannot parse", filepath, inst)
20-
raise inst
19+
raise Exception("cannot parse", filepath, inst)
2120
for node in ast.walk(tree):
2221
if isinstance(node, ast.Import):
2322
for subnode in node.names:

0 commit comments

Comments
 (0)