making extra_pnginfo argument optional.

ComfyUI does not send the argument at all when using the API, and is making MathExpression node to crash
This commit is contained in:
Agustin Abreu
2024-01-11 11:29:50 -03:00
parent 29454b3fec
commit 52fa16df18
+1 -1
View File
@@ -130,7 +130,7 @@ class MathExpression:
return target.shape[2]
return target.shape[1]
def evaluate(self, expression, extra_pnginfo, prompt, a=None, b=None, c=None):
def evaluate(self, expression, prompt, extra_pnginfo={}, a=None, b=None, c=None):
expression = expression.replace('\n', ' ').replace('\r', '')
node = ast.parse(expression, mode='eval').body