catch empty or wrong start, stop, step

This commit is contained in:
2023-04-28 21:38:22 +02:00
parent 7f79879a76
commit cd91fae0c2
+2
View File
@@ -52,6 +52,8 @@ class StepsRangeEntry(wx.BoxSizer):
else:
if step_size == 0:
raise ValueError
if None in (start_pos, end_pos, step_size):
raise ValueError
except ValueError:
nsteps = ""
tooltip = "Start, Stop and Step Size need to be floats.\nStep Size cannot be zero."