Describe the bug
When an incorrect number is entered for the frequency in the log window, it crashes, and can never be opened any more, even by restarting not1mm.
To Reproduce
Steps to reproduce the behavior:
Ensure there is a log entry
In the menus, click on “Window”, then “Log Window”
Double-click on the frequency for one of the log entries to edit it
Type “123.456.789”
Press return to confirm
Expected behavior
Either the input should not be accepted, or it should be saved as-is, with optionally an indication that it is malformed (e.g. red color).
Screenshots
Traceback (most recent call last):
File "/home/qsantos/.local/pipx/venvs/not1mm/lib/python3.11/site-packages/not1mm/logwindow.py", line 807, in <module>
window = MainWindow()
^^^^^^^^^^^^
File "/home/qsantos/.local/pipx/venvs/not1mm/lib/python3.11/site-packages/not1mm/logwindow.py", line 145, in __init__
self.get_log()
File "/home/qsantos/.local/pipx/venvs/not1mm/lib/python3.11/site-packages/not1mm/logwindow.py", line 487, in get_log
QtWidgets.QTableWidgetItem(str(round(float(freq), 2))),
^^^^^^^^^^^
ValueError: could not convert string to float: '123.456.789'
Describe the bug When an incorrect number is entered for the frequency in the log window, it crashes, and can never be opened any more, even by restarting not1mm.
To Reproduce Steps to reproduce the behavior:
Expected behavior Either the input should not be accepted, or it should be saved as-is, with optionally an indication that it is malformed (e.g. red color).
Screenshots
Desktop:
Additional context -