diff options
author | zeripath <art27@cantab.net> | 2020-12-31 13:03:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 21:03:56 +0800 |
commit | 58c105d4bf962711b084cdedb253cf4a30c54c7d (patch) | |
tree | bd645858a61f081a26313630fc60cbaa1ceccc6e /routers | |
parent | afa7f22dd831e0502a864f167d21d01f8fe5ae70 (diff) | |
download | gitea-58c105d4bf962711b084cdedb253cf4a30c54c7d.tar.gz gitea-58c105d4bf962711b084cdedb253cf4a30c54c7d.zip |
Check for notExist on profile repository page (#14197) (#14203)
Backport #14197
Fix #14189
Diffstat (limited to 'routers')
-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 6653230a39..6caa1143ec 100644 --- a/routers/user/setting/profile.go +++ b/routers/user/setting/profile.go @@ -227,6 +227,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 { |