diff --git a/simvue/client.py b/simvue/client.py index 14007c63..c9363eb0 100644 --- a/simvue/client.py +++ b/simvue/client.py @@ -641,7 +641,9 @@ def get_artifact( response.content, mimetype, allow_pickle ) - return content or response.content + # Numpy array return means just 'if content' will be ambiguous + # so must explicitly check if None + return response.content if content is None else content @prettify_pydantic @pydantic.validate_call