Skip to content

Commit

Permalink
Check for notExist on profile repository page (#14197) (#14203)
Browse files Browse the repository at this point in the history
Backport #14197

Fix #14189
  • Loading branch information
zeripath authored Dec 31, 2020
1 parent afa7f22 commit 58c105d
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 58c105d

Please sign in to comment.