From bc72d2f1c4abc64c8c512ea1b8a2eca29b64fd60 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 25 Mar 2020 18:28:42 +0100 Subject: [PATCH] do not fail if database is missing --- util/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/util.go b/util/util.go index 2f625c8..7248c91 100644 --- a/util/util.go +++ b/util/util.go @@ -248,6 +248,9 @@ func CleanupLbrynet() error { db, err := os.Stat(lbryumDir + "/blockchain.db") if err != nil { + if os.IsNotExist(err) { + return nil + } return errors.Err(err) } dbSizeLimit := int64(2 * 1024 * 1024 * 1024)