You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
Additional context
Python's logger interface allows non-Exception type to be passed in through exc_infosee also
If exc_info does not evaluate as false, it causes exception information to be added to the logging message. If an exception tuple (in the format returned by sys.exc_info()) or an exception instance is provided, it is used; otherwise, sys.exc_info() is called to get the exception information.
Add any other context about the problem here.
So exc_info is replaced by logging module only if it evaluates True, but we only check if exc_info is not None here in handler, which would attemp to unpack variable that evaluated as False later, that is not replaced by logging module.
The text was updated successfully, but these errors were encountered:
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
What is the expected behavior?
What did you expect to see?
It should log error message without throwing exception
What is the actual behavior?
What did you see instead?
It throws exception
Additional context
Python's logger interface allows non-Exception type to be passed in through
exc_info
see alsoSo
exc_info
is replaced bylogging
module only if it evaluatesTrue
, but we only check ifexc_info is not None
here in handler, which would attemp to unpack variable that evaluated asFalse
later, that is not replaced bylogging
module.The text was updated successfully, but these errors were encountered: