`InitConfigStartupTask`: Fix two warnings.
MODIFY
WalletWasabi.Backend/InitConfigStartupTask.cs
WalletWasabi.Backend/InitConfigStartupTask.cs
@@ -64,12 +64,18 @@ namespace WalletWasabi.Backend
private static void TaskScheduler_UnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e)
{
- Logger.LogWarning(e?.Exception);
+ if (e?.Exception is Exception ex)
+ {
+ Logger.LogWarning(ex);
+ }
}
private static void CurrentDomain_UnhandledException(object? sender, UnhandledExceptionEventArgs e)
{
- Logger.LogWarning(e?.ExceptionObject as Exception);
+ if (e?.ExceptionObject is Exception ex)
+ {
+ Logger.LogWarning(ex);
+ }
}
}
}

`InitConfigStartupTask`: Fix two warnings.