Skip to content

Commit 960270c

Browse files
committed
Merge branch 'release/8.0' into release/9.0
2 parents 359fe4e + fe03db9 commit 960270c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dataikuapi/dss/future.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def wait_for_result(self):
7272
"""
7373
Wait and get the future result
7474
"""
75-
if self.state.get('hasResult', False):
75+
if self.state is not None and self.state.get('hasResult', False):
76+
# no future created in backend, result already in the state
7677
return self.result_wrapper(self.state.get('result', None))
7778
if self.state is None or not self.state.get('hasResult', False) or self.state_is_peek:
7879
self.get_state()

0 commit comments

Comments
 (0)