do not cry to me

main
Bel LaPointe 2024-04-16 15:08:21 -06:00
parent 95b0394199
commit 7c2d663401
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package main
import (
"context"
"fmt"
"strings"
"time"
"github.com/google/uuid"
@ -101,7 +102,7 @@ func (q Queue) syn(ctx context.Context) ([]byte, []byte, error) {
`, reservation)
if err := row.Err(); err != nil {
return nil, nil, fmt.Errorf("failed to query reservation: %w", err)
} else if err := row.Scan(&payload); err != nil {
} else if err := row.Scan(&payload); err != nil && !strings.Contains(err.Error(), "no rows in result") {
return nil, nil, fmt.Errorf("failed to parse reservation: %w", err)
}