We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6ed6c5 + ca04207 commit fe03db9Copy full SHA for fe03db9
dataikuapi/dss/future.py
@@ -72,7 +72,8 @@ def wait_for_result(self):
72
"""
73
Wait and get the future result
74
75
- if self.state.get('hasResult', False):
+ if self.state is not None and self.state.get('hasResult', False):
76
+ # no future created in backend, result already in the state
77
return self.result_wrapper(self.state.get('result', None))
78
if self.state is None or not self.state.get('hasResult', False) or self.state_is_peek:
79
self.get_state()
0 commit comments