Skip to content

Commit ab10d1a

Browse files
committed
fix: Capture all notification errors to avoid broken state
1 parent bb6c5e4 commit ab10d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Menu/Notifications/NotificationManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// COPYRIGHT 2009 - 2024 by the Open Rails project.
1+
// COPYRIGHT 2009 - 2024 by the Open Rails project.
22
//
33
// This file is part of Open Rails.
44
//
@@ -126,7 +126,7 @@ public void CheckNotifications()
126126
Notifications.NotificationList = IncludeValid(Notifications.NotificationList);
127127
Notifications.NotificationList = SortByDate(Notifications.NotificationList);
128128
}
129-
catch (WebException ex)
129+
catch (Exception ex)
130130
{
131131
Error = ex;
132132
}

0 commit comments

Comments
 (0)