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()