summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-18 03:26:09 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-18 03:26:09 -0500
commitc4820f119dc74f85a4abb92294f40a366ab45408 (patch)
tree7d22007c0f096feef0c6fa90b7836a280dc4f1cd /routers/user
parent57b3be4016f00a91024194bf63af24559d8f4637 (diff)
downloadgitea-c4820f119dc74f85a4abb92294f40a366ab45408.tar.gz
gitea-c4820f119dc74f85a4abb92294f40a366ab45408.zip
work on #754
Diffstat (limited to 'routers/user')
-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 f5f6ab9422..0de551715a 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -105,6 +105,9 @@ func Dashboard(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
}