forked from M-Labs/artiq
1
0
Fork 0

gui: display '---' on failed number result

This commit is contained in:
Sebastien Bourdeauducq 2015-07-18 10:26:47 +02:00
parent dd7920f0c3
commit 657f198cdc
1 changed files with 1 additions and 1 deletions

View File

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