Also handle ValueErrors when converting the frequency. This also handles the case of an empty frequency field.

pull/61/head
Christian T. Jacobs 2017-07-02 14:54:42 +01:00
rodzic 70cf060d66
commit f3bf4ffc8c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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.