From c96a7749bee736f41f4e0c3fff0d09d3e0def958 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sat, 3 Aug 2024 11:40:59 +0200 Subject: [PATCH] Exception handling https://github.com/seerge/g-helper/issues/2917 --- app/AutoUpdate/AutoUpdateControl.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/AutoUpdate/AutoUpdateControl.cs b/app/AutoUpdate/AutoUpdateControl.cs index 32757cfc..03d982c6 100644 --- a/app/AutoUpdate/AutoUpdateControl.cs +++ b/app/AutoUpdate/AutoUpdateControl.cs @@ -36,7 +36,13 @@ namespace GHelper.AutoUpdate public void LoadReleases() { - Process.Start(new ProcessStartInfo(versionUrl) { UseShellExecute = true }); + try + { + Process.Start(new ProcessStartInfo(versionUrl) { UseShellExecute = true }); + } catch (Exception ex) + { + Logger.WriteLine("Failed to open releases page:" + ex.Message); + } } async void CheckForUpdatesAsync()