Skip to content

Commit fb23deb

Browse files
authored
Merge branch 'master' into fix_branch_selector
2 parents 0f3bf8a + ef825bd commit fb23deb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/user/setting/profile.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ func Repos(ctx *context.Context) {
235235
root := filepath.Join(models.UserPath(ctxUser.Name))
236236
if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
237237
if err != nil {
238+
if os.IsNotExist(err) {
239+
return nil
240+
}
238241
return err
239242
}
240243
if !info.IsDir() || path == root {

0 commit comments

Comments
 (0)