Closed kzscisoft closed 1 month ago
When returning a numpy artifact the statement return content or content.response will throw an ambiguity error due to the assertion of a numpy array being ambiguous. This fix switches to checking explicitly for None.
return content or content.response
None
Tested and works :)
When returning a numpy artifact the statement
return content or content.response
will throw an ambiguity error due to the assertion of a numpy array being ambiguous. This fix switches to checking explicitly forNone
.