aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLunny Xiao2022-01-26 11:16:13 +0800
committerGitHub2022-01-26 11:16:13 +0800
commitdf57524c49d45efa258d3533ecb1582387cde312 (patch)
treef77067e70b72c07761e340d1c20ace4cf118da6e
parentd60b5f1e89f6ce9e5f6d58c21cb36f349d6b0e51 (diff)
Fix restore without topic failure (#18387) (#18401)
Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--modules/migrations/restore.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/migrations/restore.go b/modules/migrations/restore.go
index 6177f80cb..ce1433bef 100644
--- a/modules/migrations/restore.go
+++ b/modules/migrations/restore.go
@@ -98,6 +98,9 @@ func (r *RepositoryRestorer) GetTopics() ([]string, error) {
bs, err := ioutil.ReadFile(p)
if err != nil {
+ if os.IsNotExist(err) {
+ return nil, nil
+ }
return nil, err
}