Skip to content

Commit

Permalink
Merge pull request #4255 from rtfd/humitos/project/skip-fix
Browse files Browse the repository at this point in the history
Fix triggering a build for a skipped project
  • Loading branch information
ericholscher committed Jun 19, 2018
2 parents 396a84e + 14942e9 commit 5ea9c44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readthedocs/core/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ def trigger_build(project, version=None, record=True, force=False):
force,
immutable=True,
)

if update_docs_task is None:
# Current project is skipped
return None

return update_docs_task.apply_async()


Expand Down

0 comments on commit 5ea9c44

Please sign in to comment.