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:
|
if response is not None:
|
||||||
response = response.strip()
|
response = response.strip()
|
||||||
mode, bandwidth = response.split('\n', 1)
|
mode, bandwidth = response.split('\n', 1)
|
||||||
|
bandwidth = int(bandwidth)
|
||||||
else:
|
else:
|
||||||
mode = 'err'
|
mode = 'err'
|
||||||
bandwidth = 'err'
|
bandwidth = 'err'
|
||||||
|
@ -282,7 +283,7 @@ class radio:
|
||||||
bandwidth = 'err'
|
bandwidth = 'err'
|
||||||
finally:
|
finally:
|
||||||
self.parameters['mode'] = mode
|
self.parameters['mode'] = mode
|
||||||
self.parameters['bandwidth'] = int(bandwidth)
|
self.parameters['bandwidth'] = bandwidth
|
||||||
|
|
||||||
def get_alc(self):
|
def get_alc(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue