[FR] using `raise ... from ...` to improve sdk debugging

Open
#685 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api, backend

Research direction

No files or tests are named. Start by locating SDK exception-handling raises that replace an original error, then verify that the original context remains visible through Python exception chaining and add coverage for the affected cases.

Written by the indexing model from the issue text.

Description

api: core type: feature request

Is your feature request related to a problem? Please describe.
Hey firebase team 👋

I'm always frustrated when an internal error occurs in the sdk, but during handling an that internal error you the sdk raises another and that wipes some of the context of the original error.

Describe the solution you'd like
It would be really nice to use python's built-in raise ... from ... idiom to make the debugging experience better.
It is very feasible and easy to append a from error to any raise statement that references the original error.

Describe alternatives you've considered
Debuggin without this feature 😅

Additional context
I'll gladly implement this. PR coming soon :)

Dominant language
Python
Stars
1.2k
Forks
359
Avg merge
5d 6m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-python

All issues in firebase/firebase-admin-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.