Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5186 from golemfactory/b0.23-task-keeper-keyerror…
Browse files Browse the repository at this point in the history
…-fix

fix a desync between taskkeeper's `supported_tasks` and `task_headers`
  • Loading branch information
shadeofblue committed May 18, 2020
2 parents fd36d37 + ffd3230 commit 60ae830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions golem/task/taskkeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ def get_task(
if supported_tasks is not None else self.supported_tasks
if exclude:
tasks = [t for t in tasks if t not in exclude]
tasks = [t for t in tasks if t in self.task_headers]
if not tasks:
logger.debug("`get_task`: no potential task candidates found.")
return None
Expand Down

0 comments on commit 60ae830

Please sign in to comment.