We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e93a8 commit 3c4c15aCopy full SHA for 3c4c15a
gazelle/parse.py
@@ -16,8 +16,7 @@ def parse_import_statements(content, filepath):
16
try:
17
tree = ast.parse(content)
18
except Exception as inst:
19
- print("cannot parse", filepath, inst)
20
- raise inst
+ raise Exception("cannot parse", filepath, inst)
21
for node in ast.walk(tree):
22
if isinstance(node, ast.Import):
23
for subnode in node.names:
0 commit comments