You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "josh-fell (via GitHub)" <gi...@apache.org> on 2023/04/22 11:06:37 UTC
[GitHub] [airflow] josh-fell commented on a diff in pull request #30809: Upgrade ruff to 0.0.262
josh-fell commented on code in PR #30809:
URL: https://github.com/apache/airflow/pull/30809#discussion_r1174377151
##########
airflow/providers/google/cloud/hooks/bigtable.py:
##########
@@ -248,7 +248,9 @@ 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("Instance %s did not exist; unable to delete table %s" % instance_id, table_id)
+ raise RuntimeError(
+ "Instance {} did not exist; unable to delete table {}".format(*instance_id), table_id
Review Comment:
Should we just use f-strings here instead?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org