Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
sdafni committed Jan 9, 2024
1 parent dc4c0b0 commit 2e1e8ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dagshub/data_engine/client/data_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import dacite
import gql
import rich.progress
from gql.transport.exceptions import TransportQueryError
from gql.transport.requests import RequestsHTTPTransport

import dagshub.auth
Expand Down Expand Up @@ -161,9 +162,8 @@ def _exec(self, query: str, params: Optional[Dict[str, Any]] = None) -> Dict[str
q = gql.gql(query)
try:
resp = self.client.execute(q, variable_values=params)
except gql.transport.exceptions.TransportQueryError as e:
print(f"Support-Id header: {self.client.transport.response_headers['X-DagsHub-Support-Id']}")
raise e
except TransportQueryError as e:
raise TransportQueryError(f"Support-Id: {self.client.transport.response_headers['X-DagsHub-Support-Id']}") from e

Check failure on line 166 in dagshub/data_engine/client/data_client.py

View workflow job for this annotation

GitHub Actions / Flake8

dagshub/data_engine/client/data_client.py#L166

Line too long (125 > 120 characters) (E501)
return resp

def _datasource_query(
Expand Down

0 comments on commit 2e1e8ff

Please sign in to comment.