mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
Fix restore without topic failure (#18387)
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
8053b60b4f
commit
a717265e47
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ func (r *RepositoryRestorer) GetTopics() ([]string, error) {
|
||||||
|
|
||||||
bs, err := os.ReadFile(p)
|
bs, err := os.ReadFile(p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if os.IsNotExist(err) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue