Skip to content

Commit 0a2b8ce

Browse files
authored
static CommonResults should be returned when the available results couldn't be accessed (#135)
1 parent 0fa4887 commit 0a2b8ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ansys/dpf/core/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def results(self):
155155
if misc.DYNAMIC_RESULTS:
156156
try:
157157
self._results = Results(self)
158+
if len(self._results) == 0:
159+
self._results = CommonResults(self)
158160
except Exception as e:
159161
self._results = CommonResults(self)
160162
LOG.debug(str(e))

0 commit comments

Comments
 (0)