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


##########
providers/google/src/airflow/providers/google/cloud/hooks/bigtable.py:
##########
@@ -252,7 +253,10 @@ def delete_table(self, instance_id: str, table_id: str, 
project_id: str) -> None
         instance = self.get_instance(instance_id=instance_id, 
project_id=project_id)
         if instance is None:
             raise RuntimeError(f"Instance {instance_id} did not exist; unable 
to delete table {table_id}")
-        table = instance.table(table_id=table_id)
+        try:
+            table = instance.table(table_id=table_id)
+        except google.api_core.exceptions.NotFound:
+            self.log.info("The table '%s' no longer exists. Consider it as 
deleted", table_id)
         table.delete()

Review Comment:
   Sorry My bad. I know API calls occur at .`delete()`. I mistakenly applied 
above



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