diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-18 03:37:31 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-18 03:37:31 -0500 |
commit | 0a697517ac79ea4b5f710f83381ed13dffb00272 (patch) | |
tree | 99caf32ea1030560753f0576772474e3311642e5 /routers | |
parent | c4820f119dc74f85a4abb92294f40a366ab45408 (diff) | |
download | gitea-0a697517ac79ea4b5f710f83381ed13dffb00272.tar.gz gitea-0a697517ac79ea4b5f710f83381ed13dffb00272.zip |
work on #754
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/home.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index 0de551715a..1aabe08774 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -213,6 +213,9 @@ func Profile(ctx *middleware.Context) { // FIXME: cache results? u, err := models.GetUserByName(act.ActUserName) if err != nil { + if err == models.ErrUserNotExist { + continue + } ctx.Handle(500, "GetUserByName", err) return } |