Skip to content

Commit

Permalink
Make the Call rewrite exception an AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
hugohadfield committed Jun 6, 2020
1 parent e0263f8 commit e878dbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clifford/_ast_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def visit_Call(self, node):
try:
nfuncid = node.func.id
return node
except:
except AttributeError:
# Only allow a single grade to be selected for now
if len(node.args) == 1:
return ast.Call(
Expand All @@ -57,3 +57,5 @@ def visit_Call(self, node):
)
else:
return node
except:
return node

0 comments on commit e878dbe

Please sign in to comment.