Skip to content

Commit 211b40d

Browse files
Potential fix for pull request finding 'Generic catch clause'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent fddc917 commit 211b40d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/Elsa.Common/Multitenancy/EventHandlers/TenantTaskManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private async Task StartRecurringTasksAsync(ITenantScope tenantScope, ITaskExecu
118118
{
119119
logger.LogInformation(e, "Recurring task {TaskType} was cancelled", task.GetType().Name);
120120
}
121-
catch (Exception e)
121+
catch (Exception e) when (e is not OperationCanceledException)
122122
{
123123
logger.LogError(e, "An error occurred while executing recurring task {TaskType}", task.GetType().Name);
124124
}

0 commit comments

Comments
 (0)