diff options
author | Lunny Xiao | 2022-01-26 11:16:13 +0800 |
---|---|---|
committer | GitHub | 2022-01-26 11:16:13 +0800 |
commit | df57524c49d45efa258d3533ecb1582387cde312 (patch) | |
tree | f77067e70b72c07761e340d1c20ace4cf118da6e | |
parent | d60b5f1e89f6ce9e5f6d58c21cb36f349d6b0e51 (diff) |
Fix restore without topic failure (#18387) (#18401)
Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r-- | modules/migrations/restore.go | 3 |
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 } |