Swallow writer close error (#2678)
This commit is contained in:
parent
08157234ab
commit
e36243fc95
1 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System.Globalization;
|
using System;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using API.Services;
|
using API.Services;
|
||||||
|
@ -72,8 +73,11 @@ public static class MigrateWantToReadExport
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
await result2.CloseAsync();
|
try
|
||||||
writer.Close();
|
{
|
||||||
|
await result2.CloseAsync();
|
||||||
|
writer.Close();
|
||||||
|
} catch (Exception) {/* Swallow */}
|
||||||
|
|
||||||
logger.LogCritical(
|
logger.LogCritical(
|
||||||
"Running MigrateWantToReadExport migration - Completed. This is not an error");
|
"Running MigrateWantToReadExport migration - Completed. This is not an error");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue