Skip to content

Commit

Permalink
Fix triggering a build for a skipped project
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Jun 18, 2018
1 parent f5e8705 commit 14942e9
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 14942e9

Please sign in to comment.