File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ cd "${_PROJECT_DIR}" || exit 2
1313
1414
1515if ! command -v dot > /dev/null 2>&1 ; then
16- echo " [ERROR]: Not found 'dot' command, please install 'graphiz ' first!" >&2
16+ echo " [ERROR]: Not found 'dot' command, please install 'graphviz ' first!" >&2
1717 exit 1
1818fi
1919
Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ def json_formatter(record: "Record") -> str:
2020 if record ["exception" ]:
2121 _error = {}
2222 _error_type , _error_value , _error_traceback = record ["exception" ]
23- _error ["type" ] = str (_error_type )
23+ if _error_type :
24+ _error ["type" ] = _error_type .__name__
25+ else :
26+ _error ["type" ] = "None"
27+
2428 _error ["value" ] = str (_error_value )
2529 _error ["traceback" ] = "" .join (traceback .format_tb (_error_traceback ))
2630
2731 _extra = None
28- if ( "extra" in record ) and record ["extra" ] and (0 < len (record ["extra" ])):
32+ if record ["extra" ] and (0 < len (record ["extra" ])):
2933 _extra = record ["extra" ]
3034
3135 if _extra and ("serialized" in _extra ):
You can’t perform that action at this time.
0 commit comments