mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt catching bandwidth integer conversion error
This commit is contained in:
parent
62ec8f38ba
commit
edd50128b8
1 changed files with 2 additions and 1 deletions
|
@ -270,6 +270,7 @@ class radio:
|
|||
if response is not None:
|
||||
response = response.strip()
|
||||
mode, bandwidth = response.split('\n', 1)
|
||||
bandwidth = int(bandwidth)
|
||||
else:
|
||||
mode = 'err'
|
||||
bandwidth = 'err'
|
||||
|
@ -282,7 +283,7 @@ class radio:
|
|||
bandwidth = 'err'
|
||||
finally:
|
||||
self.parameters['mode'] = mode
|
||||
self.parameters['bandwidth'] = int(bandwidth)
|
||||
self.parameters['bandwidth'] = bandwidth
|
||||
|
||||
def get_alc(self):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue