diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -658,7 +658,9 @@ func getOrphanReplacement(webPath string) (*webOrphanImage, error) { } parent, err := idForDirectoryPath(tx, path[:len(path)-1], false) - if err != nil { + if errors.Is(err, sql.ErrNoRows) { + return nil, nil + } else if err != nil { return nil, err } |