1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Check for notExist on profile repository page (#14197)

Fix #14189
This commit is contained in:
zeripath
2020-12-31 07:45:54 +00:00
committed by GitHub
parent 632800eda7
commit ef825bd242

View File

@@ -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 {