Skip to content

Commit 1a205e2

Browse files
Narrow Sentry catch to ArgumentException per code review
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/5842260c-aaa6-4292-9dd0-dffd543601e3 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 0128a4c commit 1a205e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

osu.Game/Utils/SentryLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public SentryLogger(OsuGame game, Storage? storage = null)
6969
options.Release = $"osu@{game.Version.Split('-').First()}";
7070
});
7171
}
72-
catch (Exception ex)
72+
catch (ArgumentException ex)
7373
{
7474
Logger.Log($"Failed to initialise Sentry SDK: {ex.Message}", LoggingTarget.Runtime, LogLevel.Debug);
7575
return;

0 commit comments

Comments
 (0)