Spot the bug in customer lookup

from Exceptions
C# 14 / .NET 10 intermediate 4 min 1 issue to find

Find why this method can report a missing customer when the real failure is unrelated.

csharp
public async Task<Customer?> FindCustomerAsync(
    string id, CancellationToken token)
{
    try
    {
        return await _store.FindAsync(id, token);
    }
    catch (Exception)
    {
        return null;
    }
}
Open in playground
Report an error