diff options
author | zeripath <art27@cantab.net> | 2020-12-31 07:45:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 15:45:54 +0800 |
commit | ef825bd242e9f8615007dbd7ddaaa81386ea1048 (patch) | |
tree | a7931563a552504e7bc34805a06cefd7f04df8ec /routers/user | |
parent | 632800eda7108e5e8d90dd9e3e985da3deecf365 (diff) | |
download | gitea-ef825bd242e9f8615007dbd7ddaaa81386ea1048.tar.gz gitea-ef825bd242e9f8615007dbd7ddaaa81386ea1048.zip |
Check for notExist on profile repository page (#14197)
Fix #14189
Diffstat (limited to 'routers/user')
-rw-r--r-- | routers/user/setting/profile.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/setting/profile.go b/routers/user/setting/profile.go index 74cc96cb85..fe9ce098fe 100644 --- a/routers/user/setting/profile.go +++ b/routers/user/setting/profile.go @@ -235,6 +235,9 @@ func Repos(ctx *context.Context) { root := filepath.Join(models.UserPath(ctxUser.Name)) if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { if err != nil { + if os.IsNotExist(err) { + return nil + } return err } if !info.IsDir() || path == root { |