Skip to content

Commit f62f2b7

Browse files
drew-512sbinet
andauthored
Update modules/runtime.go
Co-authored-by: Sebastien Binet <binet@cern.ch>
1 parent 96515ea commit f62f2b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (ctx *ctx) ResolveAndCompile(pathname string, opts py.CompileOpts) (py.Comp
141141
defer file.Close()
142142
codeObj, err := marshal.ReadPyc(file)
143143
if err != nil {
144-
return false, py.ExceptionNewf(py.ImportError, "Failed to marshal %q: %w", fpath, err)
144+
return false, py.ExceptionNewf(py.ImportError, "Failed to marshal %q: %v", fpath, err)
145145
}
146146
out.Code, _ = codeObj.(*py.Code)
147147
out.PycPathname = fpath

0 commit comments

Comments
 (0)