Content-Length: 263283 | pFad | http://github.com/go-python/gpython/commit/703534ef6d7d2fff53bb466b08a23884adf23dac

F3 py: Fix TracebackDump not to dump duplicated exception type · go-python/gpython@703534e · GitHub
Skip to content

Commit 703534e

Browse files
committed
py: Fix TracebackDump not to dump duplicated exception type
1 parent b715616 commit 703534e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

py/exception.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ func (exc *ExceptionInfo) TracebackDump(w io.Writer) {
158158
}
159159
fmt.Fprintf(w, "Traceback (most recent call last):\n")
160160
exc.Traceback.TracebackDump(w)
161-
name := "<nil>"
162-
if exc.Type != nil {
163-
name = exc.Type.Name
164-
}
165-
fmt.Fprintf(w, "%v: %v\n", name, exc.Value)
161+
fmt.Fprintf(w, "%v\n", exc.Value)
166162
}
167163

168164
// Test for being set

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/go-python/gpython/commit/703534ef6d7d2fff53bb466b08a23884adf23dac

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy