Skip to content

Commit ea865bf

Browse files
committed
Catch potential panic
Update dependency
1 parent f4a099d commit ea865bf

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
1212
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
1313
github.com/spf13/cobra v1.6.1
14-
github.com/unweave/unweave v0.0.0-20230525135826-dacfce72a65a
14+
github.com/unweave/unweave v0.0.0-20230601121956-060cee1134b0
1515
)
1616

1717
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
7373
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
7474
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
7575
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
76-
github.com/unweave/unweave v0.0.0-20230525135826-dacfce72a65a h1:V0RfEQxzMkHnfPVbbePzz+VycsPfvagUCQHedcRdJR4=
77-
github.com/unweave/unweave v0.0.0-20230525135826-dacfce72a65a/go.mod h1:JUa40hxqyuBllT/k+SW8W8PGQmDEoH9nON9Mp/7fjJA=
76+
github.com/unweave/unweave v0.0.0-20230601121956-060cee1134b0 h1:YjJBvWnIYP/wm+IiqSyo3XxCHMoWuGOSxOn5e+HDujk=
77+
github.com/unweave/unweave v0.0.0-20230601121956-060cee1134b0/go.mod h1:jSsvVJqqgH9Botkau2N4JI5W7z4JN9jG3pyywunr6w8=
7878
golang.org/x/crypto v0.1.0 h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU=
7979
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
8080
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

session/session.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ func Create(ctx context.Context, params types.ExecCreateParams) (string, error)
1717
exec, err := createSessionFromConfigGPUTypes(ctx, params)
1818
renderSessionCreated(exec)
1919

20-
return exec.ID, err
20+
if err != nil {
21+
return "", err
22+
}
23+
return exec.ID, nil
2124
}
2225

2326
exec, err := createSession(ctx, params, params.HardwareSpec.GPU.Type)

0 commit comments

Comments
 (0)