Skip to content

Commit 2cb2043

Browse files
Copilotjacalata
andauthored
Replace print() with logger.warning() for 409 conflict handling (#1734)
* Initial plan * Replace print() with logger.warning() for 409 error handling Co-authored-by: jacalata <2009720+jacalata@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jacalata <2009720+jacalata@users.noreply.github.com>
1 parent b529f72 commit 2cb2043

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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
server_response = self.post_request(url, refresh_req)
150150
except ServerResponseError as e:
151151
if e.code.startswith("409") and "already" in e.detail:
152-
print(e.summary + " " + e.detail)
152+
logger.warning(f"{e.summary} {e.detail}")
153153
return None
154154
raise
155155
new_job = JobItem.from_response(server_response.content, self.parent_srv.namespace)[0]

0 commit comments

Comments
 (0)