mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-29 13:28:04 +00:00
Added global exception handling for T-Balancer detection (to handle ArgumentException if portName does not exist).
This commit is contained in:
parent
d656d7558b
commit
fd6d92b845
@ -119,10 +119,8 @@ namespace OpenHardwareMonitor.Hardware.TBalancer {
|
|||||||
hardware.Add(new TBalancer(portNames[i], protocolVersion));
|
hardware.Add(new TBalancer(portNames[i], protocolVersion));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (IOException ioe) {
|
} catch (Exception e) {
|
||||||
report.AppendLine(ioe.ToString());
|
report.AppendLine(e.ToString());
|
||||||
} catch (NullReferenceException ne) {
|
|
||||||
report.AppendLine(ne.ToString());
|
|
||||||
}
|
}
|
||||||
report.AppendLine();
|
report.AppendLine();
|
||||||
}
|
}
|
||||||
|
@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.1.21.2")]
|
[assembly: AssemblyVersion("0.1.21.3")]
|
||||||
[assembly: AssemblyFileVersion("0.1.21.2")]
|
[assembly: AssemblyFileVersion("0.1.21.3")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user