From 7f70992543541b551bdf8c30fd589f690a61f67e Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Sun, 1 Mar 2020 12:33:55 +0000 Subject: [PATCH] Potential mitigation --- app/http/endpoints/root/index.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/http/endpoints/root/index.go b/app/http/endpoints/root/index.go index cc9c1ee..a523817 100644 --- a/app/http/endpoints/root/index.go +++ b/app/http/endpoints/root/index.go @@ -29,9 +29,8 @@ func IndexHandler(ctx *gin.Context) { adminGuildIds := table.GetAdminGuilds(userId) for _, guild := range table.GetGuilds(userIdStr) { guildId, err := strconv.ParseInt(guild.Id, 10, 64) - if err != nil { - ctx.String(500, err.Error()) - return + if err != nil { // I think this happens when a server was deleted? We should just skip though. + continue } if guild.Owner || utils.Contains(adminGuildIds, guildId) {