From 246f726115cb905e867000e1265a1a3bfe4d89c9 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Fri, 4 Jan 2019 21:07:21 +0300 Subject: [PATCH] Fix #502 --- control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.go b/control.go index e35c2529..84b8541d 100644 --- a/control.go +++ b/control.go @@ -426,7 +426,7 @@ func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { } else { // Remove the filter file err := os.Remove(filter.Path()) - if err != nil { + if err != nil && !os.IsNotExist(err) { errorText := fmt.Sprintf("Couldn't remove the filter file: %s", err) http.Error(w, errorText, http.StatusInternalServerError) return