From 14942e9c1322a320ec3ecd34fe6a797e975d3a6f Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 18 Jun 2018 11:28:49 -0300 Subject: [PATCH] Fix triggering a build for a skipped project --- readthedocs/core/utils/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/readthedocs/core/utils/__init__.py b/readthedocs/core/utils/__init__.py index 3b8b346ac11..6f3e83997cf 100644 --- a/readthedocs/core/utils/__init__.py +++ b/readthedocs/core/utils/__init__.py @@ -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()