diff --git a/Box.V2/Managers/BoxResourceManager.cs b/Box.V2/Managers/BoxResourceManager.cs index c434ecfbd..c05d3a982 100644 --- a/Box.V2/Managers/BoxResourceManager.cs +++ b/Box.V2/Managers/BoxResourceManager.cs @@ -302,11 +302,7 @@ private string GetEnvNameAndVersion() { ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(Subkey); } - catch (UnauthorizedAccessException) - { - return ""; - } - catch (SecurityException) + catch (Exception) { return ""; }