From b977f33df6d34cb88fa72c9d6c2a9e24a8399c0a Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 28 Mar 2024 12:05:30 +0100 Subject: [PATCH] Display error on unknown model capabilities instead of fail --- RNS/Utilities/rnodeconf.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/RNS/Utilities/rnodeconf.py b/RNS/Utilities/rnodeconf.py index e741a51..f37d667 100755 --- a/RNS/Utilities/rnodeconf.py +++ b/RNS/Utilities/rnodeconf.py @@ -774,18 +774,13 @@ class RNode(): self.made = bytes([self.eeprom[ROM.ADDR_MADE], self.eeprom[ROM.ADDR_MADE+1], self.eeprom[ROM.ADDR_MADE+2], self.eeprom[ROM.ADDR_MADE+3]]) self.checksum = b"" - - self.min_freq = models[self.model][0] - self.max_freq = models[self.model][1] - self.max_output = models[self.model][2] - try: self.min_freq = models[self.model][0] self.max_freq = models[self.model][1] self.max_output = models[self.model][2] except Exception as e: - RNS.log("Exception") - RNS.log(str(e)) + RNS.log("Error: Model band and output power capabilities are unknown!") + RNS.log("The contained exception was: "+str(e)) self.min_freq = 0 self.max_freq = 0 self.max_output = 0