Skip to content

Commit c4aad86

Browse files
committed
Reformatted
1 parent f305198 commit c4aad86

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/databricks/sql/auth/thrift_http_client.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,17 @@ def flush(self):
192192
timeout=self.__timeout,
193193
retries=self.retry_policy,
194194
)
195-
195+
196196
# Get reply to flush the request
197197
self.code = self.__resp.status
198198
self.message = self.__resp.reason
199199
self.headers = self.__resp.headers
200200

201-
logger.info("HTTP Response with status code {}, message: {}".format(self.code, self.message))
201+
logger.info(
202+
"HTTP Response with status code {}, message: {}".format(
203+
self.code, self.message
204+
)
205+
)
202206

203207
@staticmethod
204208
def basic_proxy_auth_headers(proxy):

src/databricks/sql/thrift_backend.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@ def attempt_request(attempt):
382382

383383
# We need to call type(response) here because thrift doesn't implement __name__ attributes for thrift responses
384384
logger.debug(
385-
"Received response: {}(<REDACTED>) with status {}".format(type(response).__name__, getattr(response, "status", None))
385+
"Received response: {}(<REDACTED>) with status {}".format(
386+
type(response).__name__, getattr(response, "status", None)
387+
)
386388
)
387389
unsafe_logger.debug("Received response: {}".format(response))
388390
return response

0 commit comments

Comments
 (0)