Skip to content

Commit 70e93a8

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gazelle/parse.py

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

0 commit comments

Comments
 (0)