Skip to content

Commit

Permalink
Merge: * filters: don't fail on filter update when filter file doesn'…
Browse files Browse the repository at this point in the history
…t exist

Close #1112

* commit '0737354f534385c3c2036e15d65554bcb7090fb4':
  * filters: don't fail on filter update when filter file doesn't exist
  • Loading branch information
szolin committed Oct 23, 2019
2 parents e8bb0fd + 0737354 commit 9d29fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9d29fde

Please sign in to comment.