File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ # 5.3.0 - 2025-06-19
2+
3+ - fix: safely handle exception values
4+
15# 5.2.0 - 2025-06-19
26
37- feat: construct artificial stack traces if no traceback is available on a captured exception
Original file line number Diff line number Diff line change @@ -438,12 +438,14 @@ def get_errno(exc_value):
438438
439439def get_error_message (exc_value ):
440440 # type: (Optional[BaseException]) -> str
441- return (
441+ message = (
442442 getattr (exc_value , "message" , "" )
443443 or getattr (exc_value , "detail" , "" )
444- or safe_str ( exc_value )
444+ or exc_value
445445 )
446446
447+ return safe_str (message )
448+
447449
448450def single_exception_from_error_tuple (
449451 exc_type , # type: Optional[type]
Original file line number Diff line number Diff line change 1- VERSION = "5.2 .0"
1+ VERSION = "5.3 .0"
22
33if __name__ == "__main__" :
44 print (VERSION , end = "" ) # noqa: T201
You can’t perform that action at this time.
0 commit comments