eladkal commented on code in PR #65659:
URL: https://github.com/apache/airflow/pull/65659#discussion_r3122455785


##########
providers/google/src/airflow/providers/google/cloud/hooks/dataflow.py:
##########
@@ -50,8 +50,16 @@
 from googleapiclient.discovery import Resource, build
 
 from airflow.exceptions import AirflowProviderDeprecationWarning
-from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType, 
beam_options_to_args
-from airflow.providers.common.compat.sdk import AirflowException, timeout
+from airflow.providers.common.compat.sdk import (
+    AirflowException,
+    AirflowOptionalProviderFeatureException,
+    timeout,
+)
+
+try:
+    from airflow.providers.apache.beam.hooks.beam import BeamHook, 
BeamRunnerType, beam_options_to_args
+except ImportError as e:
+    raise AirflowOptionalProviderFeatureException(e)

Review Comment:
   We can do both.. have a log message of our own and still raise the original



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to