From 4e2c7af00b9ccad1fc986d8bdeaef36f21b41e86 Mon Sep 17 00:00:00 2001 From: Michael Nale Date: Thu, 7 Sep 2023 14:48:04 +0200 Subject: [PATCH] Update the exception --- src/ansys/dpf/core/data_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/dpf/core/data_sources.py b/src/ansys/dpf/core/data_sources.py index 6418689fd2..3dd3b062cb 100644 --- a/src/ansys/dpf/core/data_sources.py +++ b/src/ansys/dpf/core/data_sources.py @@ -78,7 +78,7 @@ def __init__(self, result_path=None, data_sources=None, server=None): self._internal_obj = core_api.data_processing_duplicate_object_reference( data_sources ) - elif isinstance(data_sources, data_sources_pb2.DataSources): + elif isinstance(data_sources, data_sources_pb2.DataSources) or isinstance(data_sources, int): # It should be a message (usually from a call to operator_getoutput_data_sources) self._internal_obj = data_sources else: