Skip to content

Commit df57524

Browse files
lunnyzeripath
andauthored
Fix restore without topic failure (#18387) (#18401)
Co-authored-by: zeripath <art27@cantab.net>
1 parent d60b5f1 commit df57524

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/migrations/restore.go

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ func (r *RepositoryRestorer) GetTopics() ([]string, error) {
9898

9999
bs, err := ioutil.ReadFile(p)
100100
if err != nil {
101+
if os.IsNotExist(err) {
102+
return nil, nil
103+
}
101104
return nil, err
102105
}
103106

0 commit comments

Comments
 (0)