KamranImaaz commented on code in PR #61124:
URL: https://github.com/apache/airflow/pull/61124#discussion_r2733347668


##########
providers/google/src/airflow/providers/google/cloud/hooks/bigtable.py:
##########
@@ -268,7 +273,12 @@ def update_cluster(instance: Instance, cluster_id: str, 
nodes: int) -> None:
         """
         cluster = Cluster(cluster_id, instance)
         # "reload" is required to set location_id attribute on cluster.
-        cluster.reload()
+        try:
+            cluster.reload()
+        except google.api_core.exceptions.NotFound:
+            raise AirflowException(
+                f"Dependency: cluster '{cluster_id}' does not exist for 
instance '{instance_id}'."
+            )

Review Comment:
   Okay Sure
   



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