Don't consider it an error if there is nothing to export (#1349)

This commit is contained in:
Leonardo Mosquera
2025-04-01 18:14:35 -03:00
committed by GitHub
parent cf7580014c
commit 7add81a472
6 changed files with 110 additions and 49 deletions

View File

@@ -283,6 +283,13 @@ public partial class DashboardViewModel : ViewModelBase
Interlocked.Increment(ref successfulExportCount);
}
catch (ChannelEmptyException ex)
{
_snackbarManager.Notify(ex.Message.TrimEnd('.'));
// FIXME: not exactly successful, but not a failure either. Not ideal to duplicate the line
Interlocked.Increment(ref successfulExportCount);
}
catch (DiscordChatExporterException ex) when (!ex.IsFatal)
{
_snackbarManager.Notify(ex.Message.TrimEnd('.'));