This commit is contained in:
Andrey Meshkov 2019-01-04 21:07:21 +03:00 committed by Eugene Bujak
parent 5a6dc34ec0
commit 246f726115
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
} else { } else {
// Remove the filter file // Remove the filter file
err := os.Remove(filter.Path()) 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) errorText := fmt.Sprintf("Couldn't remove the filter file: %s", err)
http.Error(w, errorText, http.StatusInternalServerError) http.Error(w, errorText, http.StatusInternalServerError)
return return