Skip to content

Commit 670948b

Browse files
committed
format
1 parent 0f5cc43 commit 670948b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tableauserverclient/server/endpoint/datasources_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def update(self, datasource_item: DatasourceItem) -> DatasourceItem:
138138
raise MissingRequiredFieldError(error)
139139
# bug - before v3.15 you must always include the project id
140140
if datasource_item.owner_id and not datasource_item.project_id:
141-
if not self.parent_srv.check_at_least_version(self, "3.15"):
141+
if not self.parent_srv.check_at_least_version("3.15"):
142142
error = (
143143
"Attempting to set new owner but datasource is missing Project ID."
144144
"In versions before 3.15 the project id must be included to update the owner."

tableauserverclient/server/server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ def _get_legacy_version(self):
150150
info_xml = fromstring(response.content)
151151
except ParseError as parseError:
152152
logger.info(parseError)
153-
logger.info(
154-
"Could not read server version info. The server may not be running or configured."
155-
)
153+
logger.info("Could not read server version info. The server may not be running or configured.")
156154
return self.version
157155
prod_version = info_xml.find(".//product_version").text
158156
version = _PRODUCT_TO_REST_VERSION.get(prod_version, "2.1") # 2.1

0 commit comments

Comments
 (0)