We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5005b13 commit 8efa68cCopy full SHA for 8efa68c
src/databricks/sql/backend/sea_backend.py
@@ -98,12 +98,13 @@ def _extract_warehouse_id(self, http_path: str) -> str:
98
99
for pattern in [warehouse_pattern, endpoint_pattern]:
100
match = pattern.match(http_path)
101
- if match:
102
- warehouse_id = match.group(1)
103
- logger.debug(
104
- f"Extracted warehouse ID: {warehouse_id} from path: {http_path}"
105
- )
106
- return warehouse_id
+ if not match:
+ continue
+ warehouse_id = match.group(1)
+ logger.debug(
+ f"Extracted warehouse ID: {warehouse_id} from path: {http_path}"
+ )
107
+ return warehouse_id
108
109
# If no match found, raise error
110
error_message = (
0 commit comments