Skip to content

Commit 3fa5ce7

Browse files
jacalataCopilot
andauthored
Update tableauserverclient/server/endpoint/workbooks_endpoint.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c788327 commit 3fa5ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tableauserverclient/server/endpoint/workbooks_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def refresh(self, workbook_item: Union[WorkbookItem, str], incremental: bool = F
149149
try:
150150
server_response = self.post_request(url, refresh_req)
151151
except ServerResponseError as e:
152-
if e.code.startswith("409") and e.detail.find("already"):
152+
if e.code.startswith("409") and "already" in e.detail:
153153
print(e.summary + " " + e.detail)
154154
return None
155155
else:

0 commit comments

Comments
 (0)