Skip to content

Commit 6c748d4

Browse files
committed
Formatting
1 parent 13fd0ee commit 6c748d4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

deepnote_toolkit/sql/sql_execution.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# TODO(BLU-5171): Temporary hack to allow cancelling BigQuery jobs on KeyboardInterrupt (e.g. when user cancels cell execution)
4242
# Can be removed once
4343
# 1. https://github.com/googleapis/python-bigquery/pull/2331 is merged and released
44-
# 2. Dependicies updated for the toolkit. We don't depend on google-cloud-bigquery directly, but it's transitive
44+
# 2. Dependencies updated for the toolkit. We don't depend on google-cloud-bigquery directly, but it's transitive
4545
# dependency through sqlalchemy-bigquery
4646
def _monkeypatch_bigquery_wait_or_cancel():
4747
try:
@@ -73,9 +73,13 @@ def _wait_or_cancel(
7373
raise
7474

7575
_job_helpers._wait_or_cancel = _wait_or_cancel
76-
logger.debug("Successfully monkeypatched google.cloud.bigquery._job_helpers._wait_or_cancel")
76+
logger.debug(
77+
"Successfully monkeypatched google.cloud.bigquery._job_helpers._wait_or_cancel"
78+
)
7779
except ImportError:
78-
logger.debug("Could not monkeypatch BigQuery _wait_or_cancel: google.cloud.bigquery not available")
80+
logger.debug(
81+
"Could not monkeypatch BigQuery _wait_or_cancel: google.cloud.bigquery not available"
82+
)
7983
except Exception as e:
8084
logger.warning("Failed to monkeypatch BigQuery _wait_or_cancel: %s", repr(e))
8185

0 commit comments

Comments
 (0)