This commit is contained in:
Andrey Meshkov 2019-01-04 21:07:21 +03:00 committed by Eugene Bujak
parent 5a6dc34ec0
commit 246f726115

View file

@ -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