forked from M-Labs/artiq
gui: display '---' on failed number result
This commit is contained in:
parent
dd7920f0c3
commit
657f198cdc
@ -64,7 +64,7 @@ class NumberDisplay(dockarea.Dock):
|
||||
try:
|
||||
n = float(data[result])
|
||||
except:
|
||||
n = 0.0
|
||||
n = "---"
|
||||
self.number.display(n)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user