potiuk commented on a change in pull request #12558:
URL: https://github.com/apache/airflow/pull/12558#discussion_r537065204



##########
File path: airflow/providers_manager.py
##########
@@ -175,7 +202,18 @@ def _discover_hooks(self) -> None:
                 for hook_class_name in hook_class_names:
                     self._add_hook(hook_class_name, provider_package)
 
-    def _add_hook(self, hook_class_name, provider_package) -> None:
+    @staticmethod
+    def _get_attr(obj: Any, attr_name: str):
+        """Retrieves optional attributes of an object."""
+        if not hasattr(obj, attr_name):
+            log.warning(
+                "The '%s' is missing connection_type attribute and cannot be 
registered",
+                obj,

Review comment:
       Ah yeah!




----------------------------------------------------------------
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:
[email protected]


Reply via email to