This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 29fb38cfe3 Fix dev index building for suspended providers (#30812)
29fb38cfe3 is described below

commit 29fb38cfe3b0f1e54b48e7cc5786ab1c15ab8425
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Apr 22 15:21:21 2023 +0200

    Fix dev index building for suspended providers (#30812)
    
    This is a follow-up after #30422 and #30763 - it turns out that
    locally building index of providers failed when some providers
    are suspended. It only impacts dev workflow locally.
---
 docs/exts/docs_build/dev_index_generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/exts/docs_build/dev_index_generator.py 
b/docs/exts/docs_build/dev_index_generator.py
index 0aee91b8f4..055384e764 100644
--- a/docs/exts/docs_build/dev_index_generator.py
+++ b/docs/exts/docs_build/dev_index_generator.py
@@ -58,7 +58,7 @@ def _render_content():
             )
             providers.append(current_provider)
         except StopIteration:
-            raise Exception(f"Could not find provider.yaml file for package: 
{package_name}")
+            print(f"WARNING! Could not find provider.yaml file for package: 
{package_name}")
 
     content = _render_template(
         "dev_index_template.html.jinja2", providers=sorted(providers, 
key=lambda k: k["package-name"])

Reply via email to