KamranImaaz commented on PR #61008:
URL: https://github.com/apache/airflow/pull/61008#issuecomment-3795007095

   we can replace RuntimeError with an Airflow Exception right?? for better 
logs and failures in UI     
   ```
    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.delete()
    except google.api_core.exceptions.NotFound:
        self.log.info("The table '%s' no longer exists. Consider it as 
deleted", table_id)
   ```


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