kopia lustrzana https://github.com/ctjacobs/pyqso
Also handle ValueErrors when converting the frequency. This also handles the case of an empty frequency field.
rodzic
70cf060d66
commit
f3bf4ffc8c
|
@ -490,7 +490,7 @@ class RecordDialog:
|
|||
if(not isinstance(frequency, float)):
|
||||
try:
|
||||
frequency = float(frequency)
|
||||
except TypeError:
|
||||
except(ValueError, TypeError):
|
||||
logging.exception("Could not convert frequency to a floating-point value.")
|
||||
return frequency
|
||||
# Do not bother scaling if the units are the same.
|
||||
|
|
Ładowanie…
Reference in New Issue