From 0737354f534385c3c2036e15d65554bcb7090fb4 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Wed, 23 Oct 2019 14:19:43 +0300 Subject: [PATCH] * filters: don't fail on filter update when filter file doesn't exist --- home/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/filter.go b/home/filter.go index 72835a92..d5ce7ffc 100644 --- a/home/filter.go +++ b/home/filter.go @@ -436,7 +436,7 @@ func (filter *filter) save() error { func (filter *filter) saveAndBackupOld() error { filterFilePath := filter.Path() err := os.Rename(filterFilePath, filterFilePath+".old") - if err != nil { + if err != nil && !os.IsNotExist(err) { return err } return filter.save()