Skip to content

Commit 0734ca0

Browse files
lunnyzeripath
andauthored
Fix restore without topic failure (#18387) (#18400)
Co-authored-by: zeripath <[email protected]>
1 parent 0b83cc2 commit 0734ca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/migrations/restore.go

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

9898
bs, err := os.ReadFile(p)
9999
if err != nil {
100+
if os.IsNotExist(err) {
101+
return nil, nil
102+
}
100103
return nil, err
101104
}
102105

0 commit comments

Comments
 (0)