Skip to content

Commit 312127b

Browse files
Copilotjacalata
andcommitted
Replace print() with logger.warning() for 409 error handling
Co-authored-by: jacalata <2009720+jacalata@users.noreply.github.com>
1 parent 6853889 commit 312127b

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
@@ -150,7 +150,7 @@ def refresh(self, workbook_item: Union[WorkbookItem, str], incremental: bool = F
150150
server_response = self.post_request(url, refresh_req)
151151
except ServerResponseError as e:
152152
if e.code.startswith("409") and "already" in e.detail:
153-
print(e.summary + " " + e.detail)
153+
logger.warning(f"{e.summary} {e.detail}")
154154
return None
155155
else:
156156
raise e

0 commit comments

Comments
 (0)