Skip to content

Commit 8cb3251

Browse files
fix: Potential fix for pull request finding 'CodeQL / Generic catch clause'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent ffa9bec commit 8cb3251

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backend/src/Accanto.Infrastructure/Push/CircleMobilePushNotifier.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ public async Task SendTestAsync(
120120
await tokenService.RemoveInvalidTokensAsync(invalid, cancellationToken);
121121
}
122122
}
123-
catch (Exception ex)
123+
catch (InvalidOperationException ex)
124+
{
125+
_logger.LogWarning(ex, "Errore invio push di test a utente {User}", userId);
126+
}
127+
catch (DbUpdateException ex)
124128
{
125129
_logger.LogWarning(ex, "Errore invio push di test a utente {User}", userId);
126130
}

0 commit comments

Comments
 (0)