Skip to content

Commit

Permalink
Check for notExist on profile repository page (go-gitea#14197)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Dec 31, 2020
1 parent afa7f22 commit b31b3da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routers/user/setting/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b31b3da

Please sign in to comment.