Skip to content

Commit

Permalink
fix: Catch all exceptions when getting User Agent header (#901)
Browse files Browse the repository at this point in the history
Closes: SDK-3096
  • Loading branch information
lukaszsocha2 committed Apr 18, 2023
1 parent d8c7d26 commit 75d8874
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Box.V2/Managers/BoxResourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,7 @@ private string GetEnvNameAndVersion()
{
ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(Subkey);
}
catch (UnauthorizedAccessException)
{
return "";
}
catch (SecurityException)
catch (Exception)
{
return "";
}
Expand Down

0 comments on commit 75d8874

Please sign in to comment.