Skip to content

Commit 8fddc5d

Browse files
committed
Revert changes made to run history assertion in base taks #1257
1 parent 826c68d commit 8fddc5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoPyTorch/api/base_task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,8 @@ def get_incumbent_results(
12541254
Returns:
12551255
12561256
"""
1257-
if self.run_history is not None or self.run_history.empty():
1257+
assert self.run_history is not None, "No Run History found, search has not been called."
1258+
if self.run_history.empty():
12581259
raise ValueError("Run History is empty. Something went wrong, "
12591260
"smac was not able to fit any model?")
12601261

0 commit comments

Comments
 (0)