You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/19 21:39:37 UTC

[GitHub] [airflow] ashb commented on a change in pull request #14903: Turn provider's import warnings into debug logs

ashb commented on a change in pull request #14903:
URL: https://github.com/apache/airflow/pull/14903#discussion_r597988410



##########
File path: airflow/providers_manager.py
##########
@@ -281,7 +281,7 @@ def _add_hook(self, hook_class_name: str, provider_package: str) -> None:
                     self._add_customized_fields(provider_package, hook_class, field_behaviours)
 
         except Exception as e:  # noqa pylint: disable=broad-except
-            if os.environ.get("AIRFLOW_INSTALLATION_METHOD") != ".":
+            if os.environ.get("AIRFLOW_INSTALLATION_METHOD") != "." and not isinstance(e, ImportError):

Review comment:
       Could you update the commend in the else block to refer to this case/behaviour please?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org