Skip to content

Commit a717265

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

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)