mirror of https://github.com/m-labs/artiq.git
gui: display '---' on failed number result
This commit is contained in:
parent
dd7920f0c3
commit
657f198cdc
|
@ -64,7 +64,7 @@ class NumberDisplay(dockarea.Dock):
|
||||||
try:
|
try:
|
||||||
n = float(data[result])
|
n = float(data[result])
|
||||||
except:
|
except:
|
||||||
n = 0.0
|
n = "---"
|
||||||
self.number.display(n)
|
self.number.display(n)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue