| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…level Both were previously reachable only via `tableauserverclient.server.endpoint.exceptions`, which is an internal module path. Callers waiting on a background job with `server.jobs.wait_for_job()` need to catch these to distinguish a failed job from a cancelled one (JobCancelledException is a subclass of JobFailedException, so the order in an except-chain matters), and reaching into a `server.endpoint` sub-package to do so is a bad pattern to teach. Re-export them alongside the other exception types already exposed at the top level (FailedSignInError, MissingRequiredFieldError, NotSignedInError, ServerResponseError). Existing internal imports in tests and endpoints remain unchanged; this is purely additive. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation
Both JobFailedException and JobCancelledException are currently reachable only via tableauserverclient.server.endpoint.exceptions — an internal module path. Callers waiting on a background job with server.jobs.wait_for_job() need to catch these to distinguish a failed job from a cancelled one, and reaching into a server.endpoint sub-package is a bad pattern to teach.
Behavior change
Test plan
Followup
samples/list_jobs.py (added in #1843) currently reaches into the internal path. Once #1843 merges, a one-line followup PR will switch it to the top-level import.