Swallow writer close error (#2678)

This commit is contained in:
Joe Milazzo 2024-02-01 16:28:14 -06:00 committed by GitHub
parent 08157234ab
commit e36243fc95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
using System.Globalization;
using System;
using System.Globalization;
using System.IO;
using System.Threading.Tasks;
using API.Services;
@ -72,8 +73,11 @@ public static class MigrateWantToReadExport
}
await result2.CloseAsync();
writer.Close();
try
{
await result2.CloseAsync();
writer.Close();
} catch (Exception) {/* Swallow */}
logger.LogCritical(
"Running MigrateWantToReadExport migration - Completed. This is not an error");