Skip to content

Commit efc3d84

Browse files
committed
backward compatibility
1 parent 224a8ee commit efc3d84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ansys/dpf/core/time_freq_support.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ def _get_attributes_list(self, stage_num=None):
414414
if list_response.HasField("cyc_harmonic_index"):
415415
out["cyc_harmonic_index"] = dpf.core.Field(
416416
server=self._server, field=list_response.cyc_harmonic_index)
417-
if list_response.HasField("cyclic_harmonic_index_scoping"):
417+
if hasattr(list_response, "cyclic_harmonic_index_scoping") and\
418+
list_response.HasField("cyclic_harmonic_index_scoping"):
418419
out["cyclic_harmonic_index_scoping"] = dpf.core.Scoping(
419420
server=self._server, scoping=list_response.cyclic_harmonic_index_scoping)
420421
return out

0 commit comments

Comments
 (0)