diff --git a/freedata_server/rigctld.py b/freedata_server/rigctld.py index ee8189fc..9aecded5 100644 --- a/freedata_server/rigctld.py +++ b/freedata_server/rigctld.py @@ -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: