Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Better error handling #509#528

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
whysage wants to merge2 commits intoets-labs:develop
base:develop
Choose a base branch
Loading
fromwhysage:issue-509-better-error-handling

Conversation

whysage
Copy link
Contributor

Add providers log on error.

madshargreave reacted with eyes emoji
Add providers log on error.
@whysagewhysage changed the title#509Better error handling #509Nov 1, 2021
@whysage
Copy link
ContributorAuthor

whysage commentedNov 1, 2021
edited
Loading

@rmk135
Please review PR.
I'll not sure about it.


Here -#510 - you write that after reraise exception all exceptions will be just general 'Exception'.
I test my code by adding addition try here
src/dependency_injector/providers.pxd
line 582
try: return call(*args, **kwargs) except Exception as exception: raise exception

and receive type of Exception was TypeError (I used this demo
https://github.com/ets-labs/python-dependency-injector/blob/master/examples/demo/with_di.py
without env var timeout - so error was - TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType')


Also, I'm not sure about printing providers, Maybe we can log them somewhere.
Please advise.

Addition idea about problem was to add ENV var like DEPENDENCY_INJECTION_DEBUG_MODE
and print called providers only it is enabled.

I think this issue is very important - for me, it is real hell to find error in dozens providers by unclear error message.
Please help :-)

@rmk135rmk135 self-assigned thisNov 1, 2021
Use logging for providers error.
@whysage
Copy link
ContributorAuthor

Hi
@rmk135@gen-xu
Any updates?

@whysage
Copy link
ContributorAuthor

Hi!
@rmk135@gen-xu
ping for updates)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rmk135rmk135rmk135 left review comments

@gen-xugen-xugen-xu left review comments

Assignees

@rmk135rmk135

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@whysage@rmk135@gen-xu

[8]ページ先頭

©2009-2025 Movatter.jp