Skip to content
Snippets Groups Projects
Commit a02a6603 authored by Bas Nijholt's avatar Bas Nijholt
Browse files

fix NameError: self.learner.remove_unfinished()

parent b7116859
Branches
Tags
No related merge requests found
...@@ -84,7 +84,7 @@ class Runner: ...@@ -84,7 +84,7 @@ class Runner:
self.learner.add_point(x, y) self.learner.add_point(x, y)
finally: finally:
# cancel any outstanding tasks # cancel any outstanding tasks
learner.remove_unfinished() self.learner.remove_unfinished()
cancelled = all(fut.cancel() for fut in xs.keys()) cancelled = all(fut.cancel() for fut in xs.keys())
if not cancelled: if not cancelled:
raise RuntimeError('Some futures remain uncancelled') raise RuntimeError('Some futures remain uncancelled')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment