mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: flake8
This commit is contained in:
parent
a88f16b81c
commit
30792cb259
@ -237,7 +237,7 @@ class FloatMathInvocation(BaseInvocation):
|
|||||||
raise ValueError("Cannot divide by zero")
|
raise ValueError("Cannot divide by zero")
|
||||||
elif values["operation"] == "EXP" and values["a"] == 0 and v < 0:
|
elif values["operation"] == "EXP" and values["a"] == 0 and v < 0:
|
||||||
raise ValueError("Cannot raise zero to a negative power")
|
raise ValueError("Cannot raise zero to a negative power")
|
||||||
elif values["operation"] == "EXP" and type(values["a"] ** v) == complex:
|
elif values["operation"] == "EXP" and type(values["a"] ** v) is complex:
|
||||||
raise ValueError("Root operation resulted in a complex number")
|
raise ValueError("Root operation resulted in a complex number")
|
||||||
return v
|
return v
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user