Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better Exceptions on opening spreadsheets #1277

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

alifeee
Copy link
Collaborator

@alifeee alifeee commented Aug 17, 2023

replacement of #1245

closes #1244

(the following copied from #1245)

  • remove CellNotFound exception
  • open and open_by_key now return SpreadsheetNotFound exception (if spreadsheet not found), which extends APIError
    • request is attached to SpreadshetNotFound as payload. Technically, open can make multiple requests, but only the latest is attached
  • open_by_key returns PermissionError if client is not allowed to open the spreadsheet. This test is currently broken (see Fix BackOffHTTPClient not returning error 403 #1268)

remove CellNotFound
return SpreadsheetNotFound if spreadsheet not found
(before it was returning API error, see #1244)
@alifeee alifeee added this to the 5.11.0 milestone Aug 17, 2023
@alifeee alifeee self-assigned this Aug 17, 2023
@alifeee alifeee merged commit 4b4239f into master Aug 18, 2023
12 checks passed
@alifeee alifeee deleted the refactor/better-not-found-errors branch August 18, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected Exception Thrown when Opening Inaccessible/Non-existent Spreadsheet using 'open_by_url' Method
2 participants