Fix #502
This commit is contained in:
parent
5a6dc34ec0
commit
246f726115
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue