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:48:37 UTC
[GitHub] [airflow] potiuk commented on a change in pull request #14903: Turn provider's import warnings into debug logs
potiuk commented on a change in pull request #14903:
URL: https://github.com/apache/airflow/pull/14903#discussion_r597991798
##########
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:
Yep. Good point.
--
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