Skip to content

Commit fd129be

Browse files
kaushikcfdinducer
authored andcommitted
ast.Call doesn't always have keywords attribute
1 parent a4e67da commit fd129be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymbolic/interop/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def map_Call(self, expr): # noqa
189189
# (expr func, expr* args, keyword* keywords)
190190
func = self.rec(expr.func)
191191
args = tuple([self.rec(arg) for arg in expr.args])
192-
if expr.keywords:
192+
if getattr(expr, "keywords", []):
193193
return p.CallWithKwargs(func, args,
194194
{
195195
kw.arg: self.rec(kw.value)

0 commit comments

Comments
 (0)