summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-18 03:37:31 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-18 03:37:31 -0500
commit0a697517ac79ea4b5f710f83381ed13dffb00272 (patch)
tree99caf32ea1030560753f0576772474e3311642e5 /routers
parentc4820f119dc74f85a4abb92294f40a366ab45408 (diff)
downloadgitea-0a697517ac79ea4b5f710f83381ed13dffb00272.tar.gz
gitea-0a697517ac79ea4b5f710f83381ed13dffb00272.zip
work on #754
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go3
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
}