Skip to content

Commit a4e4a9b

Browse files
committed
Removing unneeded check when waiting for future result
1 parent 0be33c1 commit a4e4a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataikuapi/dss/future.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def wait_for_result(self):
7272
"""
7373
Wait and get the future result
7474
"""
75-
if self.state.get('hasResult', False) and 'result' in self.state:
75+
if self.state.get('hasResult', False):
7676
return self.result_wrapper(self.state.get('result', None))
7777
if self.state is None or not self.state.get('hasResult', False) or self.state_is_peek:
7878
self.get_state()

0 commit comments

Comments
 (0)