From 83a579fbd20531fe5c78c5aacb6c07a2488b388e Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Mon, 6 Jun 2022 23:00:03 +0200 Subject: [PATCH] admin: Don't fail if importer is not writable --- admin/api/settings.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/api/settings.go b/admin/api/settings.go index 0a182c73..ae561157 100644 --- a/admin/api/settings.go +++ b/admin/api/settings.go @@ -141,8 +141,7 @@ func saveChallengeInfo(c *gin.Context) { err = sync.WriteFileContent(sync.GlobalImporter, "challenge.json", jenc) if err != nil { log.Println("Unable to SaveChallengeInfo:", err.Error()) - c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": fmt.Sprintf("Unable to save challenge info: %s", err.Error())}) - return + // Ignore the error, try to continue } err = sync.ImportChallengeInfo(info)